From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 178C11FF40 for ; Mon, 20 Jun 2016 03:18:23 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] address: remove quotes around names Date: Mon, 20 Jun 2016 03:18:23 +0000 Message-Id: <20160620031823.3491-1-e@80x24.org> List-Id: 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(-) diff --git a/lib/PublicInbox/Address.pm b/lib/PublicInbox/Address.pm index 8b3daf5..772aded 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; }