From b0ce98e67626a85a78ea0defb8533f5adb87e2f3 Mon Sep 17 00:00:00 2001 From: "terry%mozilla.org" <> Date: Wed, 26 May 1999 02:52:34 +0000 Subject: Fixed bug 7000 -- handle hyphens in hostnames of email addresses when highlighting. --- bug_form.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bug_form.pl') diff --git a/bug_form.pl b/bug_form.pl index 1c9ecb1e0..7757b038c 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 = $&; -- cgit v1.2.3-24-g4f1b