-
Notifications
You must be signed in to change notification settings - Fork 240
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
Configure regex validation to be case insensitive #173
Comments
you could fiddle around with the |
This does not sound optimal since I'd have to have two versions of my regex, the lower and the upper case version, if I were to use anyof as you suggested. This is bad because If anything on the regex changes I have to change it on the other version aswell. |
I'm debugging the regex validation process and I realize that my suggestion might not be feasible. I'd be willing to contribute to this, but I just can't think of a good solution for this problem. |
Maybe change the
The problem then would be how to maintain backwards compatibility to the current syntax of regex validation. |
maintaining backward compatibility wouldn't be a problem. (duck-typing per instance-tests, you'll find a lot of these in the code.) |
I know it is not possible to express case insensitivity flag in the actual regex string in python, so I guess that cerberus could use another attribute to manage this, for instance: regex_case.
The text was updated successfully, but these errors were encountered: