From: Junio C Hamano Date: Tue, 6 Jun 2006 21:12:46 +0000 (-0700) Subject: send-email: a bit more careful domain regexp. X-Git-Tag: v1.4.0-rc2~17^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=09302e177e8dc789c03d9df3620e12e095b4acfb;p=git.git send-email: a bit more careful domain regexp. This tightens the regexp a bit to make sure there is no double dots. Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index 700d0c3e..7b1cca70 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -313,7 +313,7 @@ our ($message_id, $cc, %mail, $subject, $reply_to, $references, $message); sub extract_valid_address { my $address = shift; my $local_part_regexp = '[^<>"\s@]+'; - my $domain_regexp = '[^.<>"\s@]+\.[^<>"\s@]+'; + my $domain_regexp = '[^.<>"\s@]+(?:\.[^.<>"\s@]+)+'; # check for a local address: return $address if ($address =~ /^($local_part_regexp)$/);