vekexasia / android-edittext-validator

Android form edit text is an extension of EditText that brings data validation facilities to the edittext.
MIT License
1.45k stars 378 forks source link

Fixed EmptyValidator allowing whitespace #28

Closed jamiescode closed 9 years ago

jamiescode commented 9 years ago

If the EditText contains only whitespace then it passes validation due to checking if the field is empty. By using getTrimmedLength you can still check for the emptiness of the field, but also if they have entered only whitespace.

vekexasia commented 9 years ago

:+1: