]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Linkify.pm
linkify: support imap, imaps, news, and snews URIs
[public-inbox.git] / lib / PublicInbox / Linkify.pm
index b85bedfed9aa6f3bfdf2102e2311b52c573b7786..a02eafc4fc6bdd6ab93b4a4ec0b1d2c2f55ca0cb 100644 (file)
@@ -17,7 +17,7 @@ use PublicInbox::Hval qw(ascii_html mid_href);
 use PublicInbox::MID qw($MID_EXTRACT);
 
 my $SALT = rand;
-my $LINK_RE = qr{([\('!])?\b((?:ftps?|https?|nntps?|gopher)://
+my $LINK_RE = qr{([\('!])?\b((?:ftps?|https?|nntps?|imaps?|s?news|gopher)://
                 [\@:\w\.-]+(?:/
                 (?:[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]*)
                 (?:\?[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]+)?