mfbx9da4 / deep-email-validator

Validates regex, typos, disposable, dns and smtp
MIT License
868 stars 90 forks source link

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

Open trenyture opened 10 months ago

trenyture commented 10 months ago

I have a user who could register in our database while his email is not a valid one : ĥenry@gmail.com

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

> await validate({ email: "ĥenry@gmail.com", 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 }
  }
}