Commit 70e7854
committed
Fix escaping repeated
Rework escaping for CMD so that escaping a `"` works as follows
1. Escape the `"` itself (as `\\^"`) and inject a marker as a unique
anchor for the required additional escaping of backslashes. The
marker is guaranteed to be unique because we previously removed it
indiscriminately from the argument.
2. Use the marker for further replacements. If it's preceded by `\\` it
means the `\\` proceeds a `"` in the original string. If it's not it
should still be removed." for CMD1 parent e12017f commit 70e7854
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments