Skip to content

Commit

Permalink
send-email: a bit more careful domain regexp.
Browse files Browse the repository at this point in the history
This tightens the regexp a bit to make sure there is no double dots.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jun 6, 2006
1 parent ad9c18f commit 09302e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-send-email.perl
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ sub expand_aliases {
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)$/);
Expand Down

0 comments on commit 09302e1

Please sign in to comment.