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 <junkio@cox.net>
Junio C Hamano committed
Jun 6, 2006 at 14:12 UTC
09302e177e8dc789c03d9df3620e12e095b4acfb
1 file changed
+1
-1
git-send-email.perl
+1
-1
@@ -313,7 +313,7 @@ our ($message_id, $cc, %mail, $subject, $reply_to, $references, $message);
313
sub extract_valid_address {
314
my $address = shift;
315
my $local_part_regexp = '[^<>"\s@]+';
316
- my $domain_regexp = '[^.<>"\s@]+\.[^<>"\s@]+';
316
+ my $domain_regexp = '[^.<>"\s@]+(?:\.[^.<>"\s@]+)+';
317
318
# check for a local address:
319
return $address if ($address =~ /^($local_part_regexp)$/);