typoed_email_validator: add new ending to the typo list

This commit is contained in:
Georg Gadinger 2022-01-17 19:22:34 +01:00
parent 989f4a5132
commit 1997f89cc0
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
gmail.co
gmaile.com
gmaill.com
gmali.com
icluod.com
proton.mail
].map { "@#{_1}" }

View File

@ -79,6 +79,7 @@ RSpec.describe User, type: :model do
include_examples "invalid email", "fritz.fantom@gmailcom"
include_examples "invalid email", "fritz.fantom@gmaile.com"
include_examples "invalid email", "fritz.fantom@gmaill.com"
include_examples "invalid email", "fritz.fantom@gmali.com"
include_examples "invalid email", "fritz.fantom@hotmailcom"
include_examples "invalid email", "fritz.fantom@icluod.com"
# no TLD