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
This is one of the most popular use cases to make sure people dont put names, etc. as an empty string or 1 character.
eg:
{ name: { isRequired: true, minLength: 3, maxLength: 100 } }
Thanks,
The text was updated successfully, but these errors were encountered:
You case use a regular expression for that :
/.{3,100}/g
Sorry, something went wrong.
Any news on this? It says its possible using min and max but still not working for me
min
max
Using max only also doesn't work for me, as in:
{ fbName: { isRequired: true, max: 50 } }
No branches or pull requests
This is one of the most popular use cases to make sure people dont put names, etc. as an empty string or 1 character.
eg:
Thanks,
The text was updated successfully, but these errors were encountered: