We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a57243 commit 44de3d1Copy full SHA for 44de3d1
1 file changed
packages/lib/src/core/templates-entrypoint/codex.ts
@@ -198,12 +198,9 @@ fi`
198
199
const escapeForDoubleQuotes = (value: string): string => {
200
const backslash = String.fromCodePoint(92)
201
- const quote = String.fromCodePoint(34)
202
- const escapedBackslash = `${backslash}${backslash}`
203
- const escapedQuote = `${backslash}${quote}`
204
return value
205
- .replaceAll(backslash, escapedBackslash)
206
- .replaceAll(quote, escapedQuote)
+ .replaceAll(backslash, `${backslash}${backslash}`)
+ .replaceAll(String.fromCodePoint(34), `${backslash}${String.fromCodePoint(34)}`)
207
}
208
209
export const renderEntrypointCodexResumeHint = (config: TemplateConfig): string =>
0 commit comments