Skip to content

Commit 2b4a3d2

Browse files
committed
2 parents 04bbe04 + 7124242 commit 2b4a3d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mne_bids/path.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,9 @@ def _filter_fnames(
23922392
suffix_str = r"_(" + "|".join(suffix) + ")" if suffix else r"_([^_]+)"
23932393
ext_str = r"(" + "|".join(extension) + ")$" if extension else r"\.([^_]+)"
23942394
tracksys_str = (
2395-
r"tracksys-(" + "|".join(tracking_system) + ")" if tracking_system else r"(|tracksys-([^_]+))"
2395+
r"tracksys-(" + "|".join(tracking_system) + ")"
2396+
if tracking_system
2397+
else r"(|tracksys-([^_]+))"
23962398
)
23972399

23982400
regexp = (

0 commit comments

Comments
 (0)