commit:     ca2e544c70ac653b65038a60cd0db49983bed0cc
Author:     Alex Legler <alex <AT> a3li <DOT> li>
AuthorDate: Wed Feb 25 10:34:43 2015 +0000
Commit:     Alex Legler <a3li <AT> gentoo <DOT> org>
CommitDate: Wed Feb 25 10:34:43 2015 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/ag-web.git;a=commit;h=ca2e544c

Better email escape

---
 lib/helpers.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/helpers.rb b/lib/helpers.rb
index 6844e6d..987caeb 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(/@(\S*?)(>|$)/) do |s|
+      email.gsub(/@(\S*?)('|"|>|$)/) do |s|
         if $1 == 'gentoo.org'
           "@g.o#{$2}"
         elsif $1 == 'lists.gentoo.org'

Reply via email to