Commits

Stephen Rothwell  committed 689b4d5

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

Signed-off-by: Junio C Hamano <gitster@pobox.com>

  • Participants
  • Parent commits b06c6bc

Comments (0)

Files changed (1)

File git-send-email.perl

 	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,