Symfony\Component\Validator\Constraints\Regex::getNonDelimitedPattern
Convert the htmlPattern to a suitable format for HTML5 pattern.
Example: /^[a-z]+$/ would be converted to [a-z]+ However, if options are specified, it cannot be converted Pattern is also ignored if match=false since the pattern should then be reversed before application.
Signature
private function getNonDelimitedPattern()
Returns
- string|null
Line | Task |
---|---|
77+ | reverse pattern in case match=false as per issue #5307 |