mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00
Bug 326070 bonsai mailto: highlighting is too greedy
r=lpsolit
This commit is contained in:
parent
1967a9a5a6
commit
a49d6d8bf6
@ -1156,7 +1156,7 @@ sub MarkUpText {
|
||||
$bugsrpl = PerformSubsts($bugsrpl, \%substs);
|
||||
|
||||
$text =~ s{((ftp|http)://\S*[^\s.])}{<a href=\"$1\">$1</a>}g;
|
||||
$text =~ s/(<(.*@.*)>)/<a href=\"mailto:$2\">$1<\/a>/g;
|
||||
$text =~ s/(<(\S+@\S+)>)/<a href=\"mailto:$2\">$1<\/a>/g;
|
||||
|
||||
$bugsmatch = 2
|
||||
unless ($bugsmatch =~ /^\+?\d+$/);
|
||||
|
Loading…
x
Reference in New Issue
Block a user