From: Eric Wong Date: Sat, 2 Jul 2016 08:25:13 +0000 (+0000) Subject: linkify: allow '!' in URLs X-Git-Tag: v1.0.0~320 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=db07ffcc3243a19ff5b6edf7f3bfc19cb7460df0 linkify: allow '!' in URLs GoogleGroups URLs often contain '!' in them --- diff --git a/lib/PublicInbox/Linkify.pm b/lib/PublicInbox/Linkify.pm index 25f0b48a..d4df689e 100644 --- a/lib/PublicInbox/Linkify.pm +++ b/lib/PublicInbox/Linkify.pm @@ -15,9 +15,9 @@ use warnings; use Digest::SHA qw/sha1_hex/; my $SALT = rand; -my $LINK_RE = qr!\b((?:ftps?|https?|nntps?|gopher):// +my $LINK_RE = qr{\b((?:ftps?|https?|nntps?|gopher):// [\@:\w\.-]+/ - ?[,:~\$\@\w\+\&\?\.\%\;/#=-]*)!x; + ?[!,:~\$\@\w\+\&\?\.\%\;/#=-]*)}x; sub new { bless {}, shift }