From: terry%mozilla.org <> Date: Wed, 26 May 1999 02:52:34 +0000 (+0000) Subject: Fixed bug 7000 -- handle hyphens in hostnames of email addresses when X-Git-Tag: bugzilla-2.6~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0ce98e67626a85a78ea0defb8533f5adb87e2f3;p=thirdparty%2Fbugzilla.git Fixed bug 7000 -- handle hyphens in hostnames of email addresses when highlighting. --- diff --git a/bug_form.pl b/bug_form.pl index 1c9ecb1e03..7757b038ce 100644 --- a/bug_form.pl +++ b/bug_form.pl @@ -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 = $&;