Skip to content

isStrongPassword function is not considering \ as a Special Character #2261

Open
@dasguptarupak

Description

@dasguptarupak

Description
isStrongPassword function is not considering \ as a Special Character

Examples

validator.isStrongPassword(value, { minLength: 8, minLowercase: 1, minUppercase: 1, minNumbers: 1, minSymbols: 1 })

Input & Output

Input - Global123!, Output - true
Input - Global@/123, Output - true
Input - Global/123, Output - false

Additional context
Validator.js version: 13.11.0
Node.js version: v18.16.1
OS platform: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions