mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-23 05:41:10 -05:00
Validation fixes
This commit is contained in:
@@ -22,7 +22,7 @@ const GroupOptionsSchema = z.object({
|
||||
},
|
||||
{ message: "Invalid regular expression pattern" },
|
||||
),
|
||||
fileRegexDescription: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
})
|
||||
|
||||
// Schema for a group entry - either a tool group string or a tuple of [group, options]
|
||||
|
||||
@@ -135,7 +135,7 @@ describe("CustomModeSchema", () => {
|
||||
roleDefinition: "Documentation editing mode",
|
||||
groups: [
|
||||
"read",
|
||||
["edit", { fileRegex: "\\.(md|txt)$", fileRegexDescription: "Documentation files only" }],
|
||||
["edit", { fileRegex: "\\.(md|txt)$", description: "Documentation files only" }],
|
||||
"browser",
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user