fix: empty .roomodes, support Windows-style newlines in YAML block regex (#311)
This commit is contained in:
@@ -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];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user