Fixing missed cases allowing for positional character sequences

This commit is contained in:
Keith Schaab
2026-04-03 20:32:38 +00:00
parent 0f4e5d5d82
commit b807914aab
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -554,7 +554,7 @@ function findMatchingRule(
criteria: {
toolName: string;
mcpName?: string;
commandPrefix?: string | string[];
commandPrefix?: string | string[] | string[][];
argsPattern?: string;
},
): TomlRule | undefined {
@@ -32,7 +32,7 @@ vi.mock('../utils/shell-utils.js', () => ({
}));
interface ParsedPolicy {
rule?: Array<{
commandPrefix?: string | string[];
commandPrefix?: string | string[] | string[][];
mcpName?: string;
toolName?: string;
}>;