Skip to content

Commit

Permalink
Merge pull request #1966 from bpinsard/fix/rules_root_UNIT1
Browse files Browse the repository at this point in the history
fix(legacy): Add missing top-level rule for UNIT1 sidecars
  • Loading branch information
effigies authored May 6, 2024
2 parents ec85333 + 9175255 commit 335e1f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bids-validator/bids_validator/rules/top_level_rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@
}
},

"unit1_top": {
"regexp": "^[\\/\\\\](?:ses-[a-zA-Z0-9]+_)?(?:task-[a-zA-Z0-9]+_)?(?:acq-[a-zA-Z0-9]+_)?(?:ce-[a-zA-Z0-9]+_)?(?:rec-[a-zA-Z0-9]+_)?(?:run-[0-9]+_)?(?:chunk-[0-9]+_)?(@@@_unit1_suffixes_@@@)\\.json$",
"tokens": {
"@@@_unit1_suffixes_@@@": ["UNIT1"]
}
},

"dwi_top": {
"regexp": "^[\\/\\\\](?:ses-[a-zA-Z0-9]+_)?(?:acq-[a-zA-Z0-9]+_)?(?:rec-[a-zA-Z0-9]+_)?(?:dir-[a-zA-Z0-9]+_)?(?:run-[0-9]+_)?(?:part-(mag|phase|real|imag)_)?(?:chunk-[0-9]+_)?(dwi\\.(?:@@@_dwi_top_ext_@@@)|sbref\\.json)$",
"tokens": {
Expand Down

0 comments on commit 335e1f7

Please sign in to comment.