diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-07-13 08:54:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-07-13 08:54:06 -0700 |
commit | 689b4d552b8108d2c92c63258990ecd2bc791739 (patch) | |
tree | ff9d6bb82d6795fea15e6a1fcb6d049b173ba1c6 | |
parent | b06c6bc831cbb9e9eb82fd3ffd5a2b674cd940d0 (diff) | |
download | git-689b4d552b8108d2c92c63258990ecd2bc791739.tar.gz |
send-email: discard blank around address in extract_valid_address as well.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | git-send-email.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-send-email.perl b/git-send-email.perl index a847d5ed52..7552caca4b 100755 --- 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, |