From 9f48c1a869a9cc54fb5e7d899c2af7a5cef70e10 Mon Sep 17 00:00:00 2001 From: Brian Madison Date: Sun, 13 Jul 2025 22:48:19 -0500 Subject: [PATCH] fix: windows regex issue --- tools/installer/lib/ide-setup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/installer/lib/ide-setup.js b/tools/installer/lib/ide-setup.js index d4774c19..baf239b9 100644 --- a/tools/installer/lib/ide-setup.js +++ b/tools/installer/lib/ide-setup.js @@ -454,7 +454,7 @@ class IdeSetup { if (await fileManager.pathExists(agentPath)) { try { const agentContent = await fileManager.readFile(agentPath); - const yamlMatch = agentContent.match(/```ya?ml\n([\s\S]*?)```/); + const yamlMatch = agentContent.match(/```ya?ml\r?\n([\s\S]*?)```/); if (yamlMatch) { const yaml = yamlMatch[1]; @@ -945,7 +945,7 @@ class IdeSetup { const agentTitle = await this.getAgentTitle(agentId, installDir); // Extract whenToUse for the description - const yamlMatch = agentContent.match(/```ya?ml\n([\s\S]*?)```/); + const yamlMatch = agentContent.match(/```ya?ml\r?\n([\s\S]*?)```/); let description = `Activates the ${agentTitle} agent persona.`; if (yamlMatch) { const whenToUseMatch = yamlMatch[1].match(/whenToUse:\s*"(.*?)"/);