-
Notifications
You must be signed in to change notification settings - Fork 815
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
Trim option on the Length validator #3366
Comments
Could you describe what this means in a little more detail? I'm not understanding what this option would do. |
When using the Length() validator you could do something like The "trimmed value" is the value without the trailing and leading spaces |
Oh, I like this idea. @willmcgugan would we accept a PR for this? |
Sure, seems reasonable... |
This is one of my first contributions to an open source project, please tell me if I did anything wrong :) |
Would it be a good idea to implement a trim option on the input Length validator?
It could be useful for example when you want the user to input at least 2 chars but not spaces.
Should I create a pull request ?
The text was updated successfully, but these errors were encountered: