projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b06c6bc
)
send-email: discard blank around address in extract_valid_address as well.
author
Stephen Rothwell
<sfr@canb.auug.org.au>
Fri, 13 Jul 2007 15:54:06 +0000
(08:54 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 13 Jul 2007 15:54:06 +0000
(08:54 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
patch
|
blob
|
history
diff --git
a/git-send-email.perl
b/git-send-email.perl
index a847d5ed5240ed92240dbba87447f37d21a04d4c..7552caca4bbbb38b161cfb47f94d4577627ccbb3 100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-410,7
+410,7
@@
sub extract_valid_address {
return $address if ($address =~ /^($local_part_regexp)$/);
if ($have_email_valid) {
- $address =~ s/^
<(.*)>
$/$1/;
+ $address =~ s/^
\s*<(.*)>\s*
$/$1/;
return scalar Email::Valid->address($address);
} else {
# less robust/correct than the monster regexp in Email::Valid,