projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad9c18f
)
send-email: a bit more careful domain regexp.
author
Junio C Hamano
<junkio@cox.net>
Tue, 6 Jun 2006 21:12:46 +0000
(14:12 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 6 Jun 2006 21:12:46 +0000
(14:12 -0700)
This tightens the regexp a bit to make sure there is no double dots.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl
patch
|
blob
|
history
diff --git
a/git-send-email.perl
b/git-send-email.perl
index
700d0c3
..
7b1cca7
100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-313,7
+313,7
@@
our ($message_id, $cc, %mail, $subject, $reply_to, $references, $message);
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)$/);