From 719fa3f731301b2048d764a798052111e99bfea0 Mon Sep 17 00:00:00 2001 From: jheyworth <8269695+jheyworth@users.noreply.github.com> Date: Mon, 9 Feb 2026 00:55:55 +0000 Subject: [PATCH] fix: guard escapeYamlSingleQuote against undefined input Default to empty string when value is undefined/null to prevent replaceAll from throwing on missing CSV fields. Co-Authored-By: Claude Opus 4.6 --- tools/cli/installers/lib/ide/github-copilot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cli/installers/lib/ide/github-copilot.js b/tools/cli/installers/lib/ide/github-copilot.js index 196e30453..a64ffa19e 100644 --- a/tools/cli/installers/lib/ide/github-copilot.js +++ b/tools/cli/installers/lib/ide/github-copilot.js @@ -556,7 +556,7 @@ Type \`/bmad-\` in Copilot Chat to see all available BMAD workflows and agent ac * @returns {string} Escaped string safe for YAML single-quoted context */ escapeYamlSingleQuote(value) { - return value.replaceAll("'", "''"); + return (value || '').replaceAll("'", "''"); } /**