Code

send-email: discard blank around address in extract_valid_address as well.
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 13 Jul 2007 15:54:06 +0000 (08:54 -0700)
committerJunio 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

index a847d5ed5240ed92240dbba87447f37d21a04d4c..7552caca4bbbb38b161cfb47f94d4577627ccbb3 100755 (executable)
@@ -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,