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 <avarab@gmail.comReviewed-by: Avery Pennarun <apenwarr@gmail.com> Reviewed-by: Jeff King <peff@peff.net> > Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Sep 30, 2010 at 13:43 UTC
d5c7d69d0fa25f1b5df50e12280a622f28319f16
1 file changed
+1
-1
git-send-email.perl
+1
-1
@@ -881,7 +881,7 @@ sub sanitize_address {
881
# double quotes are needed if specials or CTLs are included
882
elsif ($recipient_name =~ /[][()<>@,;:\\".\000-\037\177]/) {
883
$recipient_name =~ s/(["\\\r])/\\$1/g;
884
- $recipient_name = "\"$recipient_name\"";
884
+ $recipient_name = qq["$recipient_name"];
885
}
886
887
return "$recipient_name $recipient_addr";