From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 77039633807 for ; Sun, 1 May 2016 01:49:13 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] linkify: match '~' (tilde) in URLs Date: Sun, 1 May 2016 01:49:13 +0000 Message-Id: <20160501014913.12358-1-e@80x24.org> List-Id: Tilde is common for some homepages: http://example.org/~user/ There's probably some other acceptable characters I'm missing. --- lib/PublicInbox/Linkify.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Linkify.pm b/lib/PublicInbox/Linkify.pm index 4eddedd..49ab311 100644 --- a/lib/PublicInbox/Linkify.pm +++ b/lib/PublicInbox/Linkify.pm @@ -17,7 +17,7 @@ use Digest::SHA qw/sha1_hex/; my $SALT = rand; my $LINK_RE = qr!\b((?:ftp|https?|nntp):// [\@:\w\.-]+/ - ?[\@\w\+\&\?\.\%\;/#=-]*)!x; + ?[~\@\w\+\&\?\.\%\;/#=-]*)!x; sub new { bless {}, shift } -- EW