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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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