Milad-Akarie / form_field_validator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Minimum and Maximum Length Validator

shahzans opened this issue · comments

When I try to evaluate a string for minimum length and maximum length validator it would take the trailing spaces at the start and end of the string as well into the count. It would be good if it trims the string before it is being evaluated so that we get the desired result. For example, if I set the minimum length of the string to be 3 characters and if I enter 3 whitespaces or white space at the start, character or number in the middle and again a white space at the end, in both scenarios it evaluates to True, in such scenarios it should get evaluated to false.

Hope this issue gets fixed at the earliest.