Commit b0ce98e6 authored by terry%mozilla.org's avatar terry%mozilla.org

Fixed bug 7000 -- handle hyphens in hostnames of email addresses when

highlighting.
parent 6c926fc1
......@@ -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 = $&;
......
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