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.

Home Page:https://zootools.co/tools/email-spell-checker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't suggest misspellings for icloud domains

roguesherlock opened this issue · comments

commented

Current Behavior

doesn't suggest misspellings for icloud.com domains

Expected Behavior

jorge@iclid.com should suggest jorge@icloud.com

Steps to Reproduce the Problem

https://stackblitz.com/edit/stackblitz-starters-i8edhf?file=index.js

I can confirm it triggers on most variations of icloud such as icloid.com and iclod.com, just not specifically iclid.com. I noticed there's a domainThreshold setting in the config that defaults to 2, try setting that to 3 and see if it fixes the issue?

commented

@hashimaziz1 thanks that totally does it!