ZooTools / email-spell-checker

📮 An ultratiny (1.9 KB) and fast JavaScript email checker to reduce users typing a wrong email. Written in TypeScript. Enterprise-grade.
https://zootools.co/tools/email-spell-checker
MIT License
164 stars 11 forks source link

False positive for mac.com #25

Open benrugg opened 1 year ago

benrugg commented 1 year ago

False positive: anything@mac.com suggests anything@mail.com

  1. How popular is the TLDs or Domain: mac.com email addresses were issued to millions of people. Apple has moved away from them, but they still work.
  2. Why most of the companies using this package will get benefit of it: False positives for a large number of email addresses cause additional customer support costs.

Current Behavior

const suggestion = emailSpellChecker.run({ email: 'whatever@mac.com' })
suggestion.full == 'whatever@mail.com'

Expected Behavior

const suggestion = emailSpellChecker.run({ email: 'whatever@mac.com' })
suggestion == null

Steps to Reproduce the Problem

  1. See above
benrugg commented 1 year ago

Thank you for this package, btw. It's really helpful! I'll try to submit a pr for this when I have a second.