Skip to content

Commit

Permalink
Fix test as per:
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Apr 18, 2022
1 parent f3ae5b8 commit 594c3aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dandi/bids_validator_xs.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _extension_safety(extension):
"""
if extension == "None":
return ""
if "*" in extension:
if "." in extension:
extension = extension.replace(".", "\\.")
if "*" in extension:
extension = extension.replace("*", ".*?")
Expand Down
3 changes: 2 additions & 1 deletion dandi/tests/test_bids_validator_xs.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ def test__add_extensions():
assert (
_regex_string == "sub-(?P=subject)(|_ses-(?P=session))"
"_sample-(?P<sample>([a-z,A-Z,0-9]*?))"
"(|_acq-(?P<acquisition>([a-z,A-Z,0-9]*?)))_photo\\.(jpg|png|tif)"
"(|_acq-(?P<acquisition>([a-z,A-Z,0-9]*?)))"
"_photo(\\.jpg|\\.png|\\.tif)"
)


Expand Down

0 comments on commit 594c3aa

Please sign in to comment.