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
minLength and maxLength is not working along with the type number or integer
number
integer
Note: It will be useful to count phone number, pincode etc.
Note:
For example :
var revalidator = require('revalidator'); console.dir(revalidator.validate({pincode:3333}, { properties: { pincode: { message: 'Error', type: 'number', minLength: 5, required:true } } }));
The text was updated successfully, but these errors were encountered:
use option case:
case
I was having the same problem as you yours.
I was wrong. Now I'm wondering what does option case do..
Sorry, something went wrong.
No branches or pull requests
minLength and maxLength is not working along with the type
number
orinteger
Note:
It will be useful to count phone number, pincode etc.For example :
The text was updated successfully, but these errors were encountered: