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
163 stars 12 forks source link

Doesn't suggest misspellings for icloud domains #21

Closed roguesherlock closed 1 year ago

roguesherlock commented 1 year ago

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

hashimaziz1 commented 1 year ago

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?

roguesherlock commented 1 year ago

@hashimaziz1 thanks that totally does it!