fix: empty .roomodes, support Windows-style newlines in YAML block regex (#311)

This commit is contained in:
Hossam Ghanam
2025-07-14 06:44:40 +03:00
committed by GitHub
parent 5b8f6cc85d
commit 551e30b65e

View File

@@ -702,7 +702,7 @@ class IdeSetup {
const agentContent = await fileManager.readFile(agentPath); const agentContent = await fileManager.readFile(agentPath);
// Extract YAML content // Extract YAML content
const yamlMatch = agentContent.match(/```ya?ml\n([\s\S]*?)```/); const yamlMatch = agentContent.match(/```ya?ml\r?\n([\s\S]*?)```/);
if (yamlMatch) { if (yamlMatch) {
const yaml = yamlMatch[1]; const yaml = yamlMatch[1];