Skip to content

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

@lqm231

Description

@lqm231

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions