Skip to content

Commit 46fdb04

Browse files
committed
Merge branch 'cy/docs-versioning-tweaks' of https://github.com/DeepLabCut/DeepLabCut into cy/docs-versioning-tweaks
2 parents 6d3b1be + 44a671d commit 46fdb04

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tools/docs_and_notebooks_check.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,9 @@ def target_spec_matches_path(rel_path: str, spec: dict[str, str]) -> bool:
303303
return rel_path == normalized or rel_path.startswith(normalized + "/")
304304

305305
if kind == "glob":
306-
# Support both classic glob matching and ** recursive patterns
307-
return fnmatch.fnmatchcase(rel_path, normalized) or rel_pure.match(normalized)
306+
# Use path-aware matching so '*' does not span directories, while
307+
# still supporting recursive '**' patterns.
308+
return rel_pure.match(normalized)
308309

309310
return False
310311

0 commit comments

Comments
 (0)