Bug 218386: add 'view-source:' to the link of URL protocols which automatcalyy…

Bug 218386: add 'view-source:' to the link of URL protocols which automatcalyy get hyperlinked in comments. r= timeless, a= justdave
parent 68774da9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment