Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbaraOliveira13 committed Aug 30, 2024
1 parent a46c261 commit e4e9729
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4e9729

Please sign in to comment.