about summary refs log tree commit homepage
path: root/lib/PublicInbox/Linkify.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-02 08:25:13 +0000
committerEric Wong <e@80x24.org>2016-07-02 08:25:46 +0000
commitdb07ffcc3243a19ff5b6edf7f3bfc19cb7460df0 (patch)
tree4ed2757cb7a74bb03e086db968c24b537ffdcff1 /lib/PublicInbox/Linkify.pm
parent193e9a586d49fb111fd201f491b1ad0be4e386b3 (diff)
downloadpublic-inbox-db07ffcc3243a19ff5b6edf7f3bfc19cb7460df0.tar.gz
GoogleGroups URLs often contain '!' in them
Diffstat (limited to 'lib/PublicInbox/Linkify.pm')
-rw-r--r--lib/PublicInbox/Linkify.pm4
1 files changed, 2 insertions, 2 deletions
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 }