提交 689b4d55 编写于 作者: S Stephen Rothwell 提交者: Junio C Hamano

send-email: discard blank around address in extract_valid_address as well.

Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 b06c6bc8
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册