From: Eric Wong Date: Mon, 20 Jun 2016 03:17:11 +0000 (+0000) Subject: address: remove quotes around names X-Git-Tag: v1.0.0~395 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c70cc0c804f94127b7eb4448d796f4c1b3f6dd6f;p=public-inbox.git 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. --- 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; }