Regex in metadata.xml don't match when using .
Regex on input in metadata.xml are used to match multiline strings.
In this case, we expect to use the regex to match the whole input, so '^' '$' should match start and end of string and '.' should match newlines.
This means the regex should use both 'single line' (aka s) and 'multiple lines' (aka m) options.
Updated by François ARMAND over 1 year ago
- Severity set to Minor - inconvenience | misleading | easy workaround
- User visibility set to Infrequent - complex configurations | third party integrations
- Effort required set to Very Small
- Priority changed from 0 to 46
[problematic ex: <CONSTRAINT><REGEX> in filetemplate)
So, what we want is the regex to be always multiline.
We believe this is not a breaking change because for now, a regex with ^$ would never match multiline fields, so such an input can't have been added.
The change should be only to modify "case class RegexConstraint" to always add DOTALL and MULTILINE modifiers.