From b81bbc24831fd7ff7af7cafb292ad038148f1c9f Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Fri, 6 Jan 2023 10:26:32 +0100 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 8131bb48..cf323bc9 100644 --- a/app/validators/typoed_email_validator.rb +++ b/app/validators/typoed_email_validator.rb @@ -15,6 +15,7 @@ class TypoedEmailValidator < ActiveModel::EachValidator gmail.cm gmail.co gmail.co.uk + gmail.om gmaile.com gmaill.com gmali.com diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index d2714b22..64df9de4 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -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.co" 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@gmaile.com" include_examples "invalid email", "fritz.fantom@gmaill.com"