NewOldMax / react-form-validator-core

Core validator component for react forms
MIT License
95 stars 44 forks source link

isString should strictly check the value's type #86

Closed rowrowrowrow closed 1 year ago

rowrowrowrow commented 3 years ago

If the value is null or undefined the minStringLength and maxStringLength validations will error out, preventing any validation from occurring. Instead let's use isString to strictly check the value type and then let minStringLength and maxStringLength only apply to strings.