Skip to content

Commit 86cc6bf

Browse files
committed
Update typo domains map
1 parent 7549803 commit 86cc6bf

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* Additional `gmail.com` domain names with leading digits are now
2626
normalized when `hash_address` is used. For example, `100gmail.com` will
2727
become `gmail.com`.
28+
* Additional `gmail.com` typos are now normalized when `hash_address` is
29+
used. For example, `gmali.com` will become `gmail.com`.
2830

2931
## v2.4.0 (2024-01-12)
3032

lib/minfraud/components/email.rb

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,15 @@ def clean_email_address(address)
116116

117117
TYPO_DOMAINS = {
118118
# gmail.com
119-
'35gmai.com' => 'gmail.com',
120-
'636gmail.com' => 'gmail.com',
119+
'gmai.com' => 'gmail.com',
121120
'gamil.com' => 'gmail.com',
122-
'gmail.comu' => 'gmail.com',
121+
'gmali.com' => 'gmail.com',
123122
'gmial.com' => 'gmail.com',
124123
'gmil.com' => 'gmail.com',
124+
'gmaill.com' => 'gmail.com',
125+
'gmailm.com' => 'gmail.com',
126+
'gmailo.com' => 'gmail.com',
127+
'gmailyhoo.com' => 'gmail.com',
125128
'yahoogmail.com' => 'gmail.com',
126129
# outlook.com
127130
'putlook.com' => 'outlook.com',

0 commit comments

Comments
 (0)