mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Fixed bug 7000 -- handle hyphens in hostnames of email addresses when
highlighting.
This commit is contained in:
parent
025e8356ec
commit
e1e1ed3d31
@ -52,7 +52,7 @@ sub quoteUrls {
|
||||
# which can happen if you do multiple s///g operations.
|
||||
|
||||
my @things;
|
||||
while ($text =~ s%((mailto:)?([\w\.\-\+\=]+\@\w+(?:\.\w+)+)\b|
|
||||
while ($text =~ s%((mailto:)?([\w\.\-\+\=]+\@[\w\-]+(?:\.[\w\-]+)+)\b|
|
||||
(\b((?:$protocol):\S+[\w/])))%"##$count##"%exo) {
|
||||
my $item = $&;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user