Skip to content

Commit a5c9dfd

Browse files
Match against Glob too
1 parent 168b900 commit a5c9dfd

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.claude/hooks/test-hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,13 @@ def tally(result):
256256
),
257257
(
258258
"File matcher allows safe read",
259-
hook_commands["Read|Edit|Write|MultiEdit|Grep"],
259+
hook_commands["Read|Edit|Write|MultiEdit|Grep|Glob"],
260260
{"file_path": "/project/README.md"},
261261
False,
262262
),
263263
(
264264
"File matcher blocks secret read",
265-
hook_commands["Read|Edit|Write|MultiEdit|Grep"],
265+
hook_commands["Read|Edit|Write|MultiEdit|Grep|Glob"],
266266
{"file_path": "/project/.env"},
267267
True,
268268
),

.claude/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
]
1212
},
1313
{
14-
"matcher": "Read|Edit|Write|MultiEdit|Grep",
14+
"matcher": "Read|Edit|Write|MultiEdit|Grep|Glob",
1515
"hooks": [
1616
{
1717
"type": "command",

0 commit comments

Comments
 (0)