mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 23:56:03 +01:00
typoed_email_validator: add new endings to the typo list
This commit is contained in:
parent
4dc5a65f74
commit
8b7ba59660
2 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator
|
|||
INVALID_ENDINGS = [
|
||||
# with @:
|
||||
*%w[
|
||||
aoo.com
|
||||
fmail.com
|
||||
gail.com
|
||||
gamil.com
|
||||
|
|
|
@ -81,6 +81,7 @@ RSpec.describe User, type: :model do
|
|||
# nor .mail (.email is, however)
|
||||
include_examples "invalid email", "fritz.fantom@proton.mail"
|
||||
# common typos:
|
||||
include_examples "invalid email", "fritz.fantom@aoo.com"
|
||||
include_examples "invalid email", "fritz.fantom@fmail.com"
|
||||
include_examples "invalid email", "fritz.fantom@gamil.com"
|
||||
include_examples "invalid email", "fritz.fantom@gemail.com"
|
||||
|
|
Loading…
Reference in a new issue