X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FLinkify.pm;h=ea7fd71f13ca6d7f8a0909b271be95a03be1b2aa;hb=dfe55f5ee5bd6e3a12d933a6570eb94f294d1c54;hp=d4df689e495ad8fd5babfec0989415c10a7e4ad3;hpb=1b28cc7f00a866cb2b60a6569002db1f605019d5;p=public-inbox.git diff --git a/lib/PublicInbox/Linkify.pm b/lib/PublicInbox/Linkify.pm index d4df689e..ea7fd71f 100644 --- a/lib/PublicInbox/Linkify.pm +++ b/lib/PublicInbox/Linkify.pm @@ -17,7 +17,10 @@ use Digest::SHA qw/sha1_hex/; my $SALT = rand; my $LINK_RE = qr{\b((?:ftps?|https?|nntps?|gopher):// [\@:\w\.-]+/ - ?[!,:~\$\@\w\+\&\?\.\%\;/#=-]*)}x; + (?:[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]*) + (?:\?[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]+)? + (?:\#[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%\?]+)? + )}xi; sub new { bless {}, shift }