From: Eric Wong Date: Sun, 1 May 2016 01:47:10 +0000 (+0000) Subject: linkify: match '~' (tilde) in URLs X-Git-Tag: v1.0.0~570 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edf946775493b28c40baef507b83f015f828bb88;p=thirdparty%2Fpublic-inbox.git linkify: match '~' (tilde) in URLs Tilde is common for some homepages: http://example.org/~user/ There's probably some other acceptable characters I'm missing. --- diff --git a/lib/PublicInbox/Linkify.pm b/lib/PublicInbox/Linkify.pm index 4eddedd03..49ab31168 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 }