Skip to content

Commit

Permalink
Merge pull request #1863 from Slevinski/issue-1861-fix
Browse files Browse the repository at this point in the history
Issue 1861 fix regex for BIDS Specification
  • Loading branch information
effigies authored Dec 15, 2023
2 parents 01816c6 + a8ded8e commit a523909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bids-validator/bids_validator/rules/file_level_rules.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"anat_nonparametric": {
"regexp": "^[\\/\\\\](sub-[a-zA-Z0-9]+)[\\/\\\\](?:(ses-[a-zA-Z0-9]+)[\\/\\\\])?anat[\\/\\\\]\\1(_\\2)?(?:_task-[a-zA-Z0-9]+)?(?:_acq-[a-zA-Z0-9]+)?(?:_ce-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?(?:_part-(imag|mag|phase|real))?_(?:@@@_anat_suffixes_@@@)\\.(@@@_anat_ext_@@@)$",
"regexp": "^[\\/\\\\](sub-[a-zA-Z0-9]+)[\\/\\\\](?:(ses-[a-zA-Z0-9]+)[\\/\\\\])?anat[\\/\\\\]\\1(_\\2)?(?:_task-[a-zA-Z0-9]+)?(?:_acq-[a-zA-Z0-9]+)?(?:_ce-[a-zA-Z0-9]+)?(?:_rec-[a-zA-Z0-9]+)?(?:_run-[0-9]+)?(?:_echo-[0-9]+)?(?:_part-(imag|mag|phase|real))?(?:_chunk-[0-9]+)?_(?:@@@_anat_suffixes_@@@)\\.(@@@_anat_ext_@@@)$",
"tokens": {
"@@@_anat_suffixes_@@@": [
"T1w",
Expand Down

0 comments on commit a523909

Please sign in to comment.