You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title says, it would be nice to see trimming and consecutive whitespace merging either as:
a single normalize option
two trim and mergeConsecutiveWhitespaces options
in LengthValidator at least, maybe also NotBlank if the checked value is a string
Why? Data should be normalized in general, but there are cases where you'd like to store formatted text with enough useful content, for instance forum posts.
I could do a PR, if you like the suggestion let me know which branch would be the most appropriate since it's a small feature, I guess still 4.1.x?
The text was updated successfully, but these errors were encountered:
Destroy666x
changed the title
Add string normalization options to string-based validators
Add string normalization option(s) to string-based validators
Feb 20, 2018
As the title says, it would be nice to see trimming and consecutive whitespace merging either as:
normalize
optiontrim
andmergeConsecutiveWhitespaces
optionsin
LengthValidator
at least, maybe alsoNotBlank
if the checked value is a stringWhy? Data should be normalized in general, but there are cases where you'd like to store formatted text with enough useful content, for instance forum posts.
I could do a PR, if you like the suggestion let me know which branch would be the most appropriate since it's a small feature, I guess still 4.1.x?
The text was updated successfully, but these errors were encountered: