4 ms·
Been using this for a while - https://github.com/johno/normalize-email https://github.com/johno/normalize-email
by judge2020 6y ago
Been using this for a while -
https://github.com/johno/normalize-email https://github.com/johno/normalize-email
- jeffbee 6y agoThat is a shamefully bad library. There's a million ways this is broken but the worst by far is that it lowercases the local part. Case MUST be preserved in the local part.
- kevincox 6y agoIt is fine if you want to try to block duplicate emails, but you should always continue to use the original. But yes, it has false positives and false negatives. I don't think I would call it "broken". But at the end of the day doing this kind of comparison probably raises more questions than it solves.
- jeffbee 6y agoIt's not even fine for that. If you assume that JayNesmith@ and JayneSmith@ are duplicates, you're eventually going to annoy someone.
- judge2020 6y agoDoes MS Exchange or any other relatively big email server allow multiple emails with mixed case? As far as i'm aware all of the big consumer providers (Google, Yahoo, Outlook) don't allow it.