repro: normalize hook names and use JSON for blocking test

This commit is contained in:
Taylor Mullen
2026-02-10 13:04:04 -08:00
parent 20bcd4e2a2
commit b077cfe061
2 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -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, '/');
}
/**