mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-16 21:10:40 -07:00
repro: normalize hook names and use JSON for blocking test
This commit is contained in:
@@ -93,7 +93,8 @@ export class HookRegistry {
|
||||
private getHookName(
|
||||
entry: HookRegistryEntry | { config: HookConfig },
|
||||
): string {
|
||||
return entry.config.name || entry.config.command || 'unknown-command';
|
||||
const name = entry.config.name || entry.config.command || 'unknown-command';
|
||||
return name.replace(/\\/g, '/');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user