mfbx9da4 / deep-email-validator

Validates regex, typos, disposable, dns and smtp
MIT License
873 stars 92 forks source link

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

Open trenyture opened 11 months ago

trenyture commented 11 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 }
  }
}