From 48e63cf472351f15bb87ed5d370e8ddf4850b485 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Sat, 22 Apr 2023 22:05:15 +0200 Subject: [PATCH] typoed_email_validator: add new endings to the typo list --- app/validators/typoed_email_validator.rb | 1 + spec/models/user_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/validators/typoed_email_validator.rb b/app/validators/typoed_email_validator.rb index f2f8e5d7..717fae97 100644 --- a/app/validators/typoed_email_validator.rb +++ b/app/validators/typoed_email_validator.rb @@ -29,6 +29,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator iclooud.com iclould.com icluod.com + maibox.org protonail.com xn--gmail-xk1c.com yahooo.com diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index c3071896..784a6aaf 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -138,6 +138,7 @@ RSpec.describe User, type: :model do include_examples "invalid email", "fritz.fantom@iclooud.com" include_examples "invalid email", "fritz.fantom@iclould.com" include_examples "invalid email", "fritz.fantom@icluod.com" + include_examples "invalid email", "fritz.fantom@maibox.org" include_examples "invalid email", "fritz.fantom@protonail.com" include_examples "invalid email", "fritz.fantom@xn--gmail-xk1c.com" include_examples "invalid email", "fritz.fantom@yahooo.com"