mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-15 06:12:50 -07:00
Fixing missed cases allowing for positional character sequences
This commit is contained in:
@@ -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;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user