Skip to content

Email validator accepts special character "¸" which should not be valid #2360

Open
@RaminGe

Description

@RaminGe

Describe the bug
This email is invalid but the validator returns that it is valid: te¸[email protected]

Examples

// Current behaviour:
console.log(validator.isEmail('te¸[email protected]')); // => true

// Expected behaviour:
console.log(validator.isEmail('te¸[email protected]')); // => false

Additional context
Validator.js version: 13.11.0 (latest)

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