mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-06 00:10:25 +00:00
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:
parent
7289e5bdc5
commit
eb3c3dfaae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user