diff options
-rw-r--r-- | lib/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/helpers.rb b/lib/helpers.rb index 5b4d2e3..6844e6d 100644 --- a/lib/helpers.rb +++ b/lib/helpers.rb @@ -45,7 +45,7 @@ helpers do # This method strips domains from header fields. def strip_email_headers(ary) [ary].flatten.map do |email| - email.gsub(/@(.*?)(>|$)/) do |s| + email.gsub(/@(\S*?)(>|$)/) do |s| if $1 == 'gentoo.org' "@g.o#{$2}" elsif $1 == 'lists.gentoo.org' |