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:
commit
8779767a58
1 changed files with 1 additions and 1 deletions
|
@ -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)$/);
|
||||||
|
|
Loading…
Reference in a new issue