Skip to content

Commit

Permalink
Update typo domains map
Browse files Browse the repository at this point in the history
  • Loading branch information
horgh committed Jan 26, 2024
1 parent 7549803 commit 86cc6bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
* Additional `gmail.com` domain names with leading digits are now
normalized when `hash_address` is used. For example, `100gmail.com` will
become `gmail.com`.
* Additional `gmail.com` typos are now normalized when `hash_address` is
used. For example, `gmali.com` will become `gmail.com`.

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

Expand Down
9 changes: 6 additions & 3 deletions lib/minfraud/components/email.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,15 @@ def clean_email_address(address)

TYPO_DOMAINS = {
# gmail.com
'35gmai.com' => 'gmail.com',
'636gmail.com' => 'gmail.com',
'gmai.com' => 'gmail.com',
'gamil.com' => 'gmail.com',
'gmail.comu' => 'gmail.com',
'gmali.com' => 'gmail.com',
'gmial.com' => 'gmail.com',
'gmil.com' => 'gmail.com',
'gmaill.com' => 'gmail.com',
'gmailm.com' => 'gmail.com',
'gmailo.com' => 'gmail.com',
'gmailyhoo.com' => 'gmail.com',
'yahoogmail.com' => 'gmail.com',
# outlook.com
'putlook.com' => 'outlook.com',
Expand Down

0 comments on commit 86cc6bf

Please sign in to comment.