From 2dfbc1dd3c29850ee275510c7a561193f6d9d197 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Sun, 2 Oct 2022 22:13:34 +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 4a4d7620..d4f4b84a 100644 --- a/app/validators/typoed_email_validator.rb +++ b/app/validators/typoed_email_validator.rb @@ -28,6 +28,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator iclooud.com iclould.com icluod.com + protonail.com xn--gmail-xk1c.com yahooo.com ☺gmail.com diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 642f844d..f0e3803c 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -96,6 +96,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@protonail.com" include_examples "invalid email", "fritz.fantom@xn--gmail-xk1c.com" include_examples "invalid email", "fritz.fantom@yahooo.com" include_examples "invalid email", "fritz.fantom@☺gmail.com"