about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-20 03:17:11 +0000
committerEric Wong <e@80x24.org>2016-06-20 03:17:11 +0000
commitc70cc0c804f94127b7eb4448d796f4c1b3f6dd6f (patch)
tree60abde22a3d7e773e4531dd236788373e5792a53 /lib
parent0c8f677e55941c5c65b263294692899c549ce533 (diff)
downloadpublic-inbox-c70cc0c804f94127b7eb4448d796f4c1b3f6dd6f.tar.gz
They're needless for actual display once outside of email
headers.  But we will still show them when displaying mock
headers in the permalink view.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Address.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/Address.pm b/lib/PublicInbox/Address.pm
index 8b3daf50..772adedb 100644
--- a/lib/PublicInbox/Address.pm
+++ b/lib/PublicInbox/Address.pm
@@ -18,7 +18,8 @@ sub from_name {
                 $name =~ s/\@.*//;
         }
         $name =~ tr/\r\n\t/ /;
-        $name =~ s/\A\s*//;
+        $name =~ s/\A['"\s]*//;
+        $name =~ s/['"\s]*\z//;
         $name;
 }