diff options
author | Eric Wong <e@yhbt.net> | 2020-06-26 23:26:18 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-27 18:34:47 +0000 |
commit | 0d62ec0906ebdb4e9358ccb1c0d41a30f20711cf (patch) | |
tree | ec1ca4b20fc6c653789b32bc34f92ce1d1d5f522 /lib/PublicInbox/Linkify.pm | |
parent | 89efc8f4e8d603e4fad3c4c754e23561d82de2c1 (diff) | |
download | public-inbox-0d62ec0906ebdb4e9358ccb1c0d41a30f20711cf.tar.gz |
Since we'll have an IMAP server released soon, maybe imaps:// and imap:// URLs can become popular. news:// is defined with nntp:// in RFC 5538, and we can at least support the news:// form in rendered HTML. snews:// may appear in old mail archives, too, so we'll attempt to support it in case clients do.
Diffstat (limited to 'lib/PublicInbox/Linkify.pm')
-rw-r--r-- | lib/PublicInbox/Linkify.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Linkify.pm b/lib/PublicInbox/Linkify.pm index b85bedfe..a02eafc4 100644 --- a/lib/PublicInbox/Linkify.pm +++ b/lib/PublicInbox/Linkify.pm @@ -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\-\._~!\$\&\';\(\)\*\+,;=:@/%]+)? |