From 7968c52625bd8aece3a55229b5d3da845767eaf6 Mon Sep 17 00:00:00 2001 From: Bob Badour Date: Tue, 21 Jun 2022 11:10:16 -0700 Subject: [PATCH] Add NinjaAndShellEscapeIncludingSpaces Bug: 235333302 Bug: 240342946 Test: m droid dist Change-Id: Ic52fbdb64042148d851403b4afd2dd5392282f77 Merged-in: Ic52fbdb64042148d851403b4afd2dd5392282f77 --- proptools/escape.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proptools/escape.go b/proptools/escape.go index 4ef10f0..9443a95 100644 --- a/proptools/escape.go +++ b/proptools/escape.go @@ -122,4 +122,8 @@ func NinjaAndShellEscape(s string) string { return ShellEscape(NinjaEscape(s)) } +func NinjaAndShellEscapeIncludingSpaces(s string) string { + return ShellEscapeIncludingSpaces(NinjaEscape(s)) +} + var singleQuoteReplacer = strings.NewReplacer(`'`, `'\''`)