From: Stephen Rothwell Date: Fri, 13 Jul 2007 15:54:06 +0000 (-0700) Subject: send-email: discard blank around address in extract_valid_address as well. X-Git-Tag: v1.5.3-rc2~21 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=689b4d552b8108d2c92c63258990ecd2bc791739;p=git.git send-email: discard blank around address in extract_valid_address as well. Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index a847d5ed5..7552caca4 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,