Skip to content

Commit

Permalink
FIX: Add end-of-string character to match whole filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 17, 2023
1 parent 44bad9a commit 36c0891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/schemacode/bidsschematools/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _entity_rule(rule: Mapping, schema: bst.types.Namespace):
ext_regex = f"(?P<extension>{ext_match})"

return {
"regex": "".join(dir_regex + entity_regex + [suffix_regex, ext_regex]),
"regex": "".join(dir_regex + entity_regex + [suffix_regex, ext_regex, "$"]),
"mandatory": False,
}

Expand Down

0 comments on commit 36c0891

Please sign in to comment.