Skip to content

Commit

Permalink
Adjust organized filename regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Dec 14, 2022
1 parent 03854a7 commit 55df999
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dandi/organize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,11 @@ def msg_(msg, n, cond=None):

LABELREGEX = r"[^_*\\/<>:|\"'?%@;.]+"
ORGANIZED_FILENAME_REGEX = (
rf"sub-{LABELREGEX}(_(ses|tis|slice|cell)-{LABELREGEX})*(_[a-z]+(\+[a-z]+)*)?\.nwb"
rf"sub-{LABELREGEX}"
rf"(_ses-{LABELREGEX})?"
rf"(_(tis|slice|cell|probe|obj)-{LABELREGEX})*"
r"(_[a-z]+(\+[a-z]+)*)?"
r"\.nwb"
)
ORGANIZED_FOLDER_REGEX = rf"sub-{LABELREGEX}"

Expand Down

0 comments on commit 55df999

Please sign in to comment.