fix: empty .roomodes, support Windows-style newlines in YAML block regex

This commit is contained in:
Hossam Ghanam 2025-07-13 13:51:09 +03:00
parent 5c588d008e
commit de1f4ed0d7
1 changed files with 1 additions and 1 deletions

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];