-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue on Form Validator with pattern ? #869
Comments
I have the same problem with a simple regexp: data-validate-arg="^[0-9]{3,}$" With a previous version (3.0.13) of Metro this regexp works perfectly. For the moment I use the same solution but this seems a bug. |
Remove only the split isn't correct: regexp always return true ! I have modified the code like this:
` |
Same issue, @budus could you submit a pull request with your fix? |
I did added this problem to TODO for next version |
fixed in develop branch |
Metro 4, Validator |
Hello,
It's seems to be an issue with some Regex. I explain.
I have an input like this :
And I got an error in metro.js at line 9203 because the function try to instantiate a Regex object with value
(?=.*[a-zA-Z]{1,
. I searched why and i think the error is at line 9295arg = input.data('validateArg') != undefined ? String(input.data('validateArg')).split(",") : [];
My regexp contains a comma ... So when you split by comma, my regexp stops working.
I try to remove the
split
: it's works... But i think that it's not the best solution.Any idea?
Thanks for your help,
The text was updated successfully, but these errors were encountered: