-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Form::PATTERN doesn't allow for case-insensitive checks #185
Comments
It should be compatible with HTML5 attribute |
@dg I see, makes sense. What was the reason for removing |
Yes, duplicity. Because REGEXP had a little different syntax, it might be better to add new |
@dg Okay, I'll try to cook up a PR. Thank you. |
Version: 2.4.x
Bug Description
Hi! I'm trying to perform a case-insensitive pattern validation using the
Form::PATTERN
form rule, but it seems the functionality isn't there.Form::REGEXP
used to exist in the past (but was removed) that could do this. Also, innetteForms.js
, the handler function is still there.Steps To Reproduce
Expected Behavior
To be able to use the
i
modifier. Or to be able to achieve the same behavior in a reasonable way.Possible Solution
Not sure. I don't know the reason behind removing
Form::REGEXP
and it seems weird to me that people wouldn't want to use this. Do they write new validation rules instead?The text was updated successfully, but these errors were encountered: