fix(hooks): add defensive null check for matcher.hooks to prevent Windows crash (#441)
This commit is contained in:
@@ -20,7 +20,7 @@ interface RawClaudeHooksConfig {
|
||||
function normalizeHookMatcher(raw: RawHookMatcher): HookMatcher {
|
||||
return {
|
||||
matcher: raw.matcher ?? raw.pattern ?? "*",
|
||||
hooks: raw.hooks,
|
||||
hooks: Array.isArray(raw.hooks) ? raw.hooks : [],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user