From 689b4d552b8108d2c92c63258990ecd2bc791739 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Fri, 13 Jul 2007 08:54:06 -0700 Subject: [PATCH] send-email: discard blank around address in extract_valid_address as well. Signed-off-by: Junio C Hamano --- git-send-email.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2