Browse Source

Merge branch 'vb/sendemail' into next

* vb/sendemail:
  send-email: a bit more careful domain regexp.
maint
Junio C Hamano 19 years ago
parent
commit
8779767a58
  1. 2
      git-send-email.perl

2
git-send-email.perl

@ -313,7 +313,7 @@ our ($message_id, $cc, %mail, $subject, $reply_to, $references, $message);
sub extract_valid_address { sub extract_valid_address {
my $address = shift; my $address = shift;
my $local_part_regexp = '[^<>"\s@]+'; my $local_part_regexp = '[^<>"\s@]+';
my $domain_regexp = '[^.<>"\s@]+\.[^<>"\s@]+'; my $domain_regexp = '[^.<>"\s@]+(?:\.[^.<>"\s@]+)+';


# check for a local address: # check for a local address:
return $address if ($address =~ /^($local_part_regexp)$/); return $address if ($address =~ /^($local_part_regexp)$/);

Loading…
Cancel
Save