Skip to content

Commit d5c7d69

Browse files
avargitster
authored andcommitted
send-email: sanitize_address use qq["foo"], not "\"foo\""
Perl provides an alternate quote syntax which can make using "" inside interpolated strings easier to read. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]: Avery Pennarun <[email protected]> Reviewed-by: Jeff King <[email protected]> > Signed-off-by: Junio C Hamano <[email protected]>
1 parent ff48389 commit d5c7d69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-send-email.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ sub sanitize_address {
881881
# double quotes are needed if specials or CTLs are included
882882
elsif ($recipient_name =~ /[][()<>@,;:\\".\000-\037\177]/) {
883883
$recipient_name =~ s/(["\\\r])/\\$1/g;
884-
$recipient_name = "\"$recipient_name\"";
884+
$recipient_name = qq["$recipient_name"];
885885
}
886886

887887
return "$recipient_name $recipient_addr";

0 commit comments

Comments
 (0)