Skip to content
Snippets Groups Projects
Unverified Commit d3f59f52 authored by Nick Schonning's avatar Nick Schonning Committed by GitHub
Browse files

Apply Rubocop Performance/StringReplacement (#23445)

parent 203739dd
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ module EmailHelper ...@@ -7,7 +7,7 @@ module EmailHelper
def email_to_canonical_email(str) def email_to_canonical_email(str)
username, domain = str.downcase.split('@', 2) username, domain = str.downcase.split('@', 2)
username, = username.gsub('.', '').split('+', 2) username, = username.delete('.').split('+', 2)
"#{username}@#{domain}" "#{username}@#{domain}"
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment