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
{{ message }}
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
Hi. First at all thanks for this great package. It has saved my life.
Going right to the point, I was trying to use 'pattern' option to allow slashes but it throws an error and cuts the expression. For example:
<inputtype="text" id="mytext" name="mytext" validation="pattern=/^[0-9\s.\/()-+]+$/:alt=Error in expression" />
The error says:
Invalid regular expression: /^[0-9\s.\/: \ at end of pattern
I'm using backslash to escape slash into the expression. But the slash inside is cutting the expression and doesn't recognize the escaping.
Is there anyway to fix this, please? or In which way could I extend the service or something in order to add a new regular expression but without passing it as string?