1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-17 14:34:49 +01:00

Merge branch 'vb/sendemail' into next

* vb/sendemail:
  send-email: a bit more careful domain regexp.
This commit is contained in:
Junio C Hamano 2006-06-06 14:31:24 -07:00
commit 8779767a58

View file

@ -313,7 +313,7 @@ sub expand_aliases {
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)$/);