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
Thanks for the report, and thanks to @dualfroz for the attempt in #340. The problem is real, but I've decided not to fix it in Validators.
The | in the type expression is the separator of alternatives, so a pattern containing it can only be supported by special-casing pattern:, which changes the meaning of existing expressions such as pattern:\d+|email. Validators is a legacy part of Utils now; its role is being taken over by nette/schema, where the pattern is passed on its own and the pipe works as expected:
Activity
dg commentedon Dec 3, 2019
Related #14 #15 #31
It is really hard to fix.
dg commentedon Oct 28, 2026
Thanks for the report, and thanks to @dualfroz for the attempt in #340. The problem is real, but I've decided not to fix it in
Validators.The
|in the type expression is the separator of alternatives, so a pattern containing it can only be supported by special-casingpattern:, which changes the meaning of existing expressions such aspattern:\d+|email.Validatorsis a legacy part of Utils now; its role is being taken over by nette/schema, where the pattern is passed on its own and the pipe works as expected:So I'm closing this.