Embedded flags aren't removed when they are erased.
Embedded flag syntax (?)
Valid flags
a - ascii
i - Ignore Case
L - Locale
m - Multi Line
s - Dot All
x - Verbose
These flags represent the tick boxes in the flag cell.
These flags can be added in a string with no spaces, example (?aiL) is a valid embedded flag string.
The issue is that when turning (?aiL) to (?ai) the Locale checkbox is not unticked. It should be a simple fix. I imagine you just need to have all flags, subtract the flags found and untick what is left.
Embedded flags aren't removed when they are erased.
Embedded flag syntax (?)
Valid flags
These flags represent the tick boxes in the flag cell. These flags can be added in a string with no spaces, example
(?aiL)
is a valid embedded flag string.The issue is that when turning
(?aiL)
to(?ai)
the Locale checkbox is not unticked. It should be a simple fix. I imagine you just need to have all flags, subtract the flags found and untick what is left.