From c70cc0c804f94127b7eb4448d796f4c1b3f6dd6f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 20 Jun 2016 03:17:11 +0000 Subject: address: remove quotes around names 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. --- lib/PublicInbox/Address.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3-24-ge0c7