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

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

Open
trenyture opened this issue Dec 20, 2023 · 0 comments
Open

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

trenyture opened this issue Dec 20, 2023 · 0 comments

Comments

@trenyture
Copy link

trenyture commented Dec 20, 2023

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 }
  }
}
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