You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Dotnet escaping rules are weird here, we can only escape \ if it precedes a "
91
+
// If a double quotation mark follows two or an even number of backslashes, each proceeding backslash pair is replaced with one backslash and the double quotation mark is removed.
92
+
// If a double quotation mark follows an odd number of backslashes, including just one, each preceding pair is replaced with one backslash and the remaining backslash is removed; however, in this case the double quotation mark is not removed.
@@ -175,15 +174,11 @@ public void CreateEscapedOption_keyOnly(string input, string escaped)
175
174
[Theory]
176
175
[Trait("Level","L0")]
177
176
[Trait("Category","Worker")]
178
-
[InlineData("HOME","","HOME","")]
179
-
[InlineData("HOME alpine:3.8 sh -c id #","HOME alpine:3.8 sh -c id #","HOME alpine:3.8 sh -c id #","HOME alpine:3.8 sh -c id #")]
180
-
[InlineData("HOME \"alpine:3.8 sh -c id #","HOME \"alpine:3.8 sh -c id #","HOME \\\"alpine:3.8 sh -c id #","HOME \\\"alpine:3.8 sh -c id #")]
181
-
[InlineData("HOME \\\"alpine:3.8 sh -c id #","HOME \\\"alpine:3.8 sh -c id #","HOME \\\\\\\"alpine:3.8 sh -c id #","HOME \\\\\"alpine:3.8 sh -c id #")]
182
-
[InlineData("HOME \\\\\"alpine:3.8 sh -c id #","HOME \\\\\"alpine:3.8 sh -c id #","HOME \\\\\\\\\\\"alpine:3.8 sh -c id #","HOME \\\\\\\"alpine:3.8 sh -c id #")]
183
-
[InlineData("HOME \"\"alpine:3.8 sh -c id #","HOME \"\"alpine:3.8 sh -c id #","HOME \\\"\\\"alpine:3.8 sh -c id #","HOME \\\"\\\"alpine:3.8 sh -c id #")]
184
-
[InlineData("HOME \\\"\"alpine:3.8 sh -c id #","HOME \\\"\"alpine:3.8 sh -c id #","HOME \\\\\\\"\\\"alpine:3.8 sh -c id #","HOME \\\\\"\\\"alpine:3.8 sh -c id #")]
185
-
[InlineData("HOME \"\\\"alpine:3.8 sh -c id #","HOME \"\\\"alpine:3.8 sh -c id #","HOME \\\"\\\\\\\"alpine:3.8 sh -c id #","HOME \\\"\\\\\"alpine:3.8 sh -c id #")]
0 commit comments