From db07ffcc3243a19ff5b6edf7f3bfc19cb7460df0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 2 Jul 2016 08:25:13 +0000 Subject: linkify: allow '!' in URLs GoogleGroups URLs often contain '!' in them --- lib/PublicInbox/Linkify.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox') 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 } -- cgit v1.2.3-24-ge0c7