diff --git a/app/helpers/email_helper.rb b/app/helpers/email_helper.rb index 360783c62877499d5079966dcf6454c6ded3f216..0800601f98bf930d3761590931b8768e2c5f51bd 100644 --- a/app/helpers/email_helper.rb +++ b/app/helpers/email_helper.rb @@ -7,7 +7,7 @@ module EmailHelper def email_to_canonical_email(str) username, domain = str.downcase.split('@', 2) - username, = username.gsub('.', '').split('+', 2) + username, = username.delete('.').split('+', 2) "#{username}@#{domain}" end