You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In FormatConstraint::validateRegex() method, '/' character has used for delimiter of preg_match() function.
If regex format contains '/' character, then schema validator always fails.
It seems to escape '/' character before preg_match() function call.
The text was updated successfully, but these errors were encountered:
Confirmed - FormatConstraint::validateRegex() does not translate from ECMA-262 to PCRE, and does not escape PCRE delimiters. Thanks for reporting this.
I'm somewhat short on time at the moment - I've added this to my (long!) todo list, but you're welcome / encouraged to submit a PR for it if you want this fixed quickly :-).
In FormatConstraint::validateRegex() method, '/' character has used for delimiter of preg_match() function.
If regex format contains '/' character, then schema validator always fails.
It seems to escape '/' character before preg_match() function call.
The text was updated successfully, but these errors were encountered: