typoed_email_validator: add new endings to the typo list

This commit is contained in:
Georg Gadinger 2023-01-06 10:26:32 +01:00
parent 992f31676c
commit b81bbc2483
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
gmail.cm gmail.cm
gmail.co gmail.co
gmail.co.uk gmail.co.uk
gmail.om
gmaile.com gmaile.com
gmaill.com gmaill.com
gmali.com gmali.com

View File

@ -88,6 +88,7 @@ RSpec.describe User, type: :model do
include_examples "invalid email", "fritz.fantom@gmail.cm" include_examples "invalid email", "fritz.fantom@gmail.cm"
include_examples "invalid email", "fritz.fantom@gmail.co" include_examples "invalid email", "fritz.fantom@gmail.co"
include_examples "invalid email", "fritz.fantom@gmail.co.uk" include_examples "invalid email", "fritz.fantom@gmail.co.uk"
include_examples "invalid email", "fritz.fantom@gmail.om"
include_examples "invalid email", "fritz.fantom@gmailcom" include_examples "invalid email", "fritz.fantom@gmailcom"
include_examples "invalid email", "fritz.fantom@gmaile.com" include_examples "invalid email", "fritz.fantom@gmaile.com"
include_examples "invalid email", "fritz.fantom@gmaill.com" include_examples "invalid email", "fritz.fantom@gmaill.com"