Fix: use String.raw for escaped triple quotes in TOML
This commit is contained in:
parent
5aef6379b9
commit
b102694c64
|
|
@ -38,7 +38,7 @@ Follow all instructions in the ${type} file exactly as written.
|
|||
|
||||
if (format === 'toml') {
|
||||
// Escape any triple quotes in content
|
||||
const escapedContent = content.replace(/"""/g, '\\"\\"\\"');
|
||||
const escapedContent = content.replaceAll('"""', String.raw`\"\"\"`);
|
||||
return `description = "${description}"
|
||||
prompt = """
|
||||
${escapedContent}
|
||||
|
|
|
|||
Loading…
Reference in New Issue