Compare commits

..

1 Commits

Author SHA1 Message Date
Ajay Kumar c78d545f57
Merge 2632f6c538 into b83ccc71b9 2026-02-24 12:58:53 +05:30
3 changed files with 8 additions and 6 deletions

View File

@ -24,14 +24,16 @@ class ManifestGenerator {
} }
/** /**
* Clean text for CSV output by normalizing whitespace. * Clean text for CSV output by normalizing whitespace and escaping quotes
* Note: Quote escaping is handled by escapeCsv() at write time.
* @param {string} text - Text to clean * @param {string} text - Text to clean
* @returns {string} Cleaned text * @returns {string} Cleaned text safe for CSV
*/ */
cleanForCSV(text) { cleanForCSV(text) {
if (!text) return ''; if (!text) return '';
return text.trim().replaceAll(/\s+/g, ' '); // Normalize all whitespace (including newlines) to single space return text
.trim()
.replaceAll(/\s+/g, ' ') // Normalize all whitespace (including newlines) to single space
.replaceAll('"', '""'); // Escape quotes for CSV
} }
/** /**

View File

@ -1,4 +1,4 @@
description = '{{description}}' description = """{{description}}"""
prompt = """ prompt = """
Execute the BMAD '{{name}}' workflow. Execute the BMAD '{{name}}' workflow.

View File

@ -1,4 +1,4 @@
description = '{{description}}' description = """{{description}}"""
prompt = """ prompt = """
Execute the BMAD '{{name}}' workflow. Execute the BMAD '{{name}}' workflow.