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

Error when using 'min' and 'max' options #4

Open
lqm231 opened this issue Jul 18, 2017 · 0 comments
Open

Error when using 'min' and 'max' options #4

lqm231 opened this issue Jul 18, 2017 · 0 comments

Comments

@lqm231
Copy link

lqm231 commented Jul 18, 2017

There is bug when using 'min' and 'max' options at the same time.
The method 'check' keep returning false although the password is correct.
I have found an 'options.ran' in 'create' method. Should that 'min', isn't it?

function create(options) { ... if (isNumber(options.min) && isNumber(options.max)) { regex += lengthOptions.range.replace('min', options.ran).replace('max', options.max); ... }

Thanks,
Minh

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

No branches or pull requests

1 participant