From e4e9729cbff7b89d59ab08588a371861dc6586a6 Mon Sep 17 00:00:00 2001 From: barbara oliveira Date: Fri, 30 Aug 2024 16:13:02 +0200 Subject: [PATCH] lint --- .../decidim/friendly_signup/registration_form_override.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/forms/concerns/decidim/friendly_signup/registration_form_override.rb b/app/forms/concerns/decidim/friendly_signup/registration_form_override.rb index c86e8d4..6f40707 100644 --- a/app/forms/concerns/decidim/friendly_signup/registration_form_override.rb +++ b/app/forms/concerns/decidim/friendly_signup/registration_form_override.rb @@ -8,6 +8,7 @@ class RegistrationFormOverride < Decidim::RegistrationForm private EMAIL_REGEX = /\A[^<>"']+@[a-zA-Z0-9\-.]+\.[a-zA-Z]{2,}/ + def no_special_characters_in_email errors.add(:email, :invalid) if email =~ EMAIL_REGEX end