Bug 218386: add 'view-source:' to the link of URL protocols which automatcalyy get hyperlinked in comments.

r= timeless, a= justdave
This commit is contained in:
justdave%syndicomm.com 2003-10-26 05:26:41 +00:00
parent 7289e5bdc5
commit eb3c3dfaae

View File

@ -887,7 +887,7 @@ sub quoteUrls {
my $tmp;
# non-mailto protocols
my $protocol_re = qr/(afs|cid|ftp|gopher|http|https|mid|news|nntp|prospero|telnet|wais)/i;
my $protocol_re = qr/(afs|cid|ftp|gopher|http|https|mid|news|nntp|prospero|telnet|view-source|wais)/i;
$text =~ s~\b(${protocol_re}: # The protocol:
[^\s<>\"]+ # Any non-whitespace