{"version":"2.1.335","anchor":"gitignore-style-matching-moved-to-a-different-matcher","canonical_anchor":"gitignore-style-matching-moved-to-a-different-matcher","heading":"Path matching for deny rules and hooks works differently","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/gitignore-style-matching-moved-to-a-different-matcher","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Path matching for deny rules and hooks works differently\n\nDeny rules and hooks now match file paths with a different matcher, which treats repeated ** and trailing spaces differently\n\n**Unclear.** Beyond repeated ** and trailing spaces, it is not known which paths now match differently.\n\n**What**\n\nClaude Code has changed how it checks file paths against two kinds of pattern. A deny rule is a setting that blocks Claude from touching certain paths. A hook is a command you set up to run when Claude does something. Both now use a different pattern matcher.\n\nTwo differences are visible:\n\n- Repeated `**` segments in a pattern are collapsed into one. `**` means \"any number of folders\".\n\n- Spaces at the end of a pattern are handled differently.\n\n**Why**\n\nThis could change which paths your deny rules block and which paths trigger your hooks. If you rely on patterns with repeated `**` or trailing spaces, check that they still match what you expect.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}