about summary refs log tree commit homepage
path: root/lib/PublicInbox/Linkify.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-05-01 01:47:10 +0000
committerEric Wong <e@80x24.org>2016-05-01 01:47:10 +0000
commitedf946775493b28c40baef507b83f015f828bb88 (patch)
tree7bfe699caf720ea7871ad572833365b55abd326a /lib/PublicInbox/Linkify.pm
parent9da6fcbb3e6d720a4b575a48063ecf3240a44022 (diff)
downloadpublic-inbox-edf946775493b28c40baef507b83f015f828bb88.tar.gz
Tilde is common for some homepages: http://example.org/~user/
There's probably some other acceptable characters I'm missing.
Diffstat (limited to 'lib/PublicInbox/Linkify.pm')
-rw-r--r--lib/PublicInbox/Linkify.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Linkify.pm b/lib/PublicInbox/Linkify.pm
index 4eddedd0..49ab3116 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 }