Commit a3c2f84
committed
fix(systemPrompts): scope Piebald-AI#664 backslash-doubling to quote contexts
PR Piebald-AI#664's backslash-doubler runs before every delimiter branch, including
backticks. For template-literal content, escapeDepthZeroBackticks is
already parity-aware for backticks, so pre-doubling turns `\`find\`` into
`\` + closing backtick + `find`, terminating the template early and
breaking cli.js parsing with "Expected CommonJS module to have a function
wrapper" on load. Limit doubling to " and ' contexts.
Affects Piebald-AI#660.1 parent 98b4411 commit a3c2f84
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
| |||
0 commit comments