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

fix(isLength): isLegth(aa) should return true #1070

Merged

Commits on Jul 28, 2019

  1. fix(isLength): isLegth(aa) should return true

    - ensure that even when user does not pass max and min, set defaults for the same
    - instance, validator.isLength('aa') returns false, instead, we should return true and set min as 0 and max as undefined
    - close validatorjs#939
    ezkemboi committed Jul 28, 2019
    Copy the full SHA
    9eacc41 View commit details
    Browse the repository at this point in the history