typoed_email_validator: add new endings to the typo list

This commit is contained in:
Georg Gadinger 2023-01-29 19:19:35 +01:00
parent 7c1057acb3
commit a59bc3ef92
2 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
gmaile.com
gmaill.com
gmali.com
gmaul.com
gnail.com
hotamil.com
hotmai.com

View File

@ -93,6 +93,7 @@ RSpec.describe User, type: :model do
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@gmaul.com"
include_examples "invalid email", "fritz.fantom@gnail.com"
include_examples "invalid email", "fritz.fantom@hotamil.com"
include_examples "invalid email", "fritz.fantom@hotmai.com"