From 551e30b65e1f04386f0bd0193f726828df684d5b Mon Sep 17 00:00:00 2001 From: Hossam Ghanam <57846279+H-Ghanam@users.noreply.github.com> Date: Mon, 14 Jul 2025 06:44:40 +0300 Subject: [PATCH] fix: empty .roomodes, support Windows-style newlines in YAML block regex (#311) --- tools/installer/lib/ide-setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/installer/lib/ide-setup.js b/tools/installer/lib/ide-setup.js index c413385f..d4774c19 100644 --- a/tools/installer/lib/ide-setup.js +++ b/tools/installer/lib/ide-setup.js @@ -702,7 +702,7 @@ class IdeSetup { const agentContent = await fileManager.readFile(agentPath); // Extract YAML content - 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];