mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 08:29:53 +01:00
typoed_email_validator: add new ending to the typo list
This commit is contained in:
parent
989f4a5132
commit
1997f89cc0
2 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
|
|||
gmail.co
|
||||
gmaile.com
|
||||
gmaill.com
|
||||
gmali.com
|
||||
icluod.com
|
||||
proton.mail
|
||||
].map { "@#{_1}" }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue