Demote git-p4import to contrib status.
[gitweb.git] / 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,