mirror of
https://github.com/bmad-code-org/BMAD-METHOD.git
synced 2026-01-30 04:32:02 +00:00
Fix: use String.raw for escaped triple quotes in TOML
This commit is contained in:
@@ -38,7 +38,7 @@ Follow all instructions in the ${type} file exactly as written.
|
|||||||
|
|
||||||
if (format === 'toml') {
|
if (format === 'toml') {
|
||||||
// Escape any triple quotes in content
|
// Escape any triple quotes in content
|
||||||
const escapedContent = content.replace(/"""/g, '\\"\\"\\"');
|
const escapedContent = content.replaceAll('"""', String.raw`\"\"\"`);
|
||||||
return `description = "${description}"
|
return `description = "${description}"
|
||||||
prompt = """
|
prompt = """
|
||||||
${escapedContent}
|
${escapedContent}
|
||||||
|
|||||||
Reference in New Issue
Block a user