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 .tv TLD #26

Open benrugg opened 1 year ago

benrugg commented 1 year ago

False positive: anything@anything.tv suggests anything@anything.tk

  1. How popular is the TLDs or Domain: .tv are used by many media companies and startups. Not sure about exact numbers, but I've seen several articles over the years about the financial boon that .tv domain registration fees have been for the island of Tuvalu.
  2. Why most of the companies using this package will get benefit of it: False positives for email address suggestions cause additional customer support costs.

Current Behavior

const suggestion = emailSpellChecker.run({ email: 'anything@anything.tv' })
suggestion.full == 'anything@anything.tk'

Expected Behavior

const suggestion = emailSpellChecker.run({ email: 'anything@anything.tv' })
suggestion == null

Steps to Reproduce the Problem

  1. See above