We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Provide a new constraint for the string validation type that checks for equality while ignoring differences in case.
string
myStringProp: { type: 'string', mustEqualIgnoreCase: function(doc, oldDoc, value, oldValue) { return doc.aProp + '-' + doc.bProp; } }
The text was updated successfully, but these errors were encountered:
Issue #17: Constraint that requires a matching string value, ignoring…
a046a3b
… case The new constraint (`mustEqualIgnoreCase`) operates like `mustEqual` except that it applies only to strings and it ignores differences in case.
Addressed by commit a046a3b.
Sorry, something went wrong.
OldSneerJaw
No branches or pull requests
Feature Request
Description
Provide a new constraint for the
string
validation type that checks for equality while ignoring differences in case.Examples
The text was updated successfully, but these errors were encountered: