Skip to content
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

Form validation shouldn't trim values before validation #6237

Open
Gaffi81 opened this issue Mar 2, 2018 · 2 comments
Open

Form validation shouldn't trim values before validation #6237

Gaffi81 opened this issue Mar 2, 2018 · 2 comments

Comments

@Gaffi81
Copy link

Gaffi81 commented Mar 2, 2018

Form validator trims whitespaces from values before validation, which is really unwanted.
For example, " 123" validates as "integer".
Or " aaaa" validates against regexp[/^[a-z0-9]*$/i], but it shouldn't, as space is not a valid char, but the validator receives the form value as space-trimmed...

Currently I have to add custom validators, which validates against input value instead of the "value" param...

@stale
Copy link

stale bot commented Jun 3, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@lubber-de

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants