Skip to content

Regex give me a positive when it should be negative #80

Open
@trenyture

Description

@trenyture

I have a user who could register in our database while his email is not a valid one : ĥ[email protected]

When I tested it, the regex said it's a valid one when it should not...

> await validate({ email: [email protected]", validateRegex: true, validateMx: true, validateTypo: true, validateDisposable: true, validateSMTP: false })

{
  valid: true,
  validators: {
    regex: { valid: true },
    typo: { valid: true },
    disposable: { valid: true },
    mx: { valid: true },
    smtp: { valid: true }
  }
}

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