Skip to content

Commit 3c9ad58

Browse files
committed
redo the regexp to allow for '/bold.json'
1 parent f92cef5 commit 3c9ad58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/type.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ module.exports = {
3939
var fixedTopLevelNames = ["/README", "/CHANGES", "/dataset_description.json", "/participants.tsv",
4040
"/participants.json", "/phasediff.json", "/phase1.json", "/phase2.json", "/fieldmap.json"];
4141

42-
var funcTopRe = new RegExp('^\\/(?:ses-[a-zA-Z0-9]+_)?(?:recording-[a-zA-Z0-9]+_)?task-[a-zA-Z0-9]+(?:_acq-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?(?:_echo-[0-9]+)?'
43-
+ '(_bold.json|_sbref.json|_events.json|_events.tsv|_physio.json|_stim.json|_beh.json)$');
42+
var funcTopRe = new RegExp('^\\/(?:ses-[a-zA-Z0-9]+_)?(?:recording-[a-zA-Z0-9]+_)?(?:task-[a-zA-Z0-9]+_)?(?:acq-[a-zA-Z0-9]+_)?(?:rec-[a-zA-Z0-9]+_)?(?:run-[0-9]+_)?(?:echo-[0-9]+_)?'
43+
+ '(bold.json|sbref.json|events.json|events.tsv|physio.json|stim.json|beh.json)$');
4444

4545
var anatTopRe = new RegExp('^\\/(?:ses-[a-zA-Z0-9]+_)?(?:acq-[a-zA-Z0-9]+_)?(?:rec-[a-zA-Z0-9]+_)?(?:run-[0-9]+_)?'
4646
+ '(' + anatSuffixes.join("|") + ').json$');

0 commit comments

Comments
 (0)