mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-27 06:34:55 +00:00
fix: "allow always" for commands with paths (#23558)
This commit is contained in:
committed by
GitHub
parent
eb979d9681
commit
edcf7de2c0
@@ -264,11 +264,7 @@ function normalizeCommandName(raw: string): string {
|
||||
return raw.slice(1, -1);
|
||||
}
|
||||
}
|
||||
const trimmed = raw.trim();
|
||||
if (!trimmed) {
|
||||
return trimmed;
|
||||
}
|
||||
return trimmed.split(/[\\/]/).pop() ?? trimmed;
|
||||
return raw.trim();
|
||||
}
|
||||
|
||||
function extractNameFromNode(node: Node): string | null {
|
||||
|
||||
Reference in New Issue
Block a user