add me.com and fastmail.com to the list of common email domains (#3126)

Users with email addresses at these common domains complained
about having to confirm they had not misspelled a similar domain.
Add these two to the list so that they are no longer flagged as
possible misspellings.

Fixes #2906. Fixes #3118.
This commit is contained in:
Jen 2023-06-18 14:12:40 -05:00 committed by GitHub
parent 9bbaa36f3a
commit 8faece21cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -545,7 +545,8 @@ sub check_email {
my $tf_domain = Text::Fuzzy->new( $domain, max => 3, trans => 1 );
my @common_domains = (
'gmail.com', 'yahoo.com', 'hotmail.com', 'outlook.com',
'aol.com', 'live.com', 'mail.com', 'ymail.com'
'aol.com', 'live.com', 'mail.com', 'fastmail.com',
'ymail.com', 'me.com'
);
my $nearest = $tf_domain->nearest( \@common_domains );
my $bad_spelling = defined $nearest && $tf_domain->last_distance > 0;