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

Conversation

ezkemboi
Copy link
Member

  • Ensure that even when a user does not pass max and min, set defaults for the same
  • For instance, validator.isLength('aa') returns false, instead, we should return true and set min as 0 and max as undefined, i.e to return the same results as validator.isLength('aa', {min: 0, max: undefined})
  • close isLength default options not set properly #939

- 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
Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR Ez 🎉

@profnandaa profnandaa merged commit 1ce76a1 into validatorjs:master Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

isLength default options not set properly
3 participants