Skip to content

Commit 3d37a05

Browse files
committed
Allow + symbol in label entities.
1 parent 48d6d62 commit 3d37a05

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

niworkflows/data/nipreps.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@
33
"entities": [
44
{
55
"name": "subject",
6-
"pattern": "[/\\\\]+sub-([a-zA-Z0-9]+)",
6+
"pattern": "[/\\\\]+sub-([a-zA-Z0-9+]+)",
77
"directory": "{subject}"
88
},
99
{
1010
"name": "session",
11-
"pattern": "[_/\\\\]+ses-([a-zA-Z0-9]+)",
11+
"pattern": "[_/\\\\]+ses-([a-zA-Z0-9+]+)",
1212
"mandatory": false,
1313
"directory": "{subject}{session}"
1414
},
1515
{
1616
"name": "task",
17-
"pattern": "[_/\\\\]+task-([a-zA-Z0-9]+)"
17+
"pattern": "[_/\\\\]+task-([a-zA-Z0-9+]+)"
1818
},
1919
{
2020
"name": "acquisition",
21-
"pattern": "[_/\\\\]+acq-([a-zA-Z0-9]+)"
21+
"pattern": "[_/\\\\]+acq-([a-zA-Z0-9+]+)"
2222
},
2323
{
2424
"name": "ceagent",
25-
"pattern": "[_/\\\\]+ce-([a-zA-Z0-9]+)"
25+
"pattern": "[_/\\\\]+ce-([a-zA-Z0-9+]+)"
2626
},
2727
{
2828
"name": "reconstruction",
29-
"pattern": "[_/\\\\]+rec-([a-zA-Z0-9]+)"
29+
"pattern": "[_/\\\\]+rec-([a-zA-Z0-9+]+)"
3030
},
3131
{
3232
"name": "direction",
33-
"pattern": "[_/\\\\]+dir-([a-zA-Z0-9]+)"
33+
"pattern": "[_/\\\\]+dir-([a-zA-Z0-9+]+)"
3434
},
3535
{
3636
"name": "run",
@@ -39,11 +39,11 @@
3939
},
4040
{
4141
"name": "proc",
42-
"pattern": "[_/\\\\]+proc-([a-zA-Z0-9]+)"
42+
"pattern": "[_/\\\\]+proc-([a-zA-Z0-9+]+)"
4343
},
4444
{
4545
"name": "modality",
46-
"pattern": "[_/\\\\]+mod-([a-zA-Z0-9]+)"
46+
"pattern": "[_/\\\\]+mod-([a-zA-Z0-9+]+)"
4747
},
4848
{
4949
"name": "echo",
@@ -67,11 +67,11 @@
6767
},
6868
{
6969
"name": "recording",
70-
"pattern": "[_/\\\\]+recording-([a-zA-Z0-9]+)"
70+
"pattern": "[_/\\\\]+recording-([a-zA-Z0-9+]+)"
7171
},
7272
{
7373
"name": "space",
74-
"pattern": "[_/\\\\]+space-([a-zA-Z0-9\\+]+)"
74+
"pattern": "[_/\\\\]+space-([a-zA-Z0-9+\\+]+)"
7575
},
7676
{
7777
"name": "suffix",
@@ -95,31 +95,31 @@
9595
},
9696
{
9797
"name": "atlas",
98-
"pattern": "[_/\\\\]+atlas-([a-zA-Z0-9]+)"
98+
"pattern": "[_/\\\\]+atlas-([a-zA-Z0-9+]+)"
9999
},
100100
{
101101
"name": "roi",
102-
"pattern": "[_/\\\\]+roi-([a-zA-Z0-9]+)"
102+
"pattern": "[_/\\\\]+roi-([a-zA-Z0-9+]+)"
103103
},
104104
{
105105
"name": "label",
106-
"pattern": "[_/\\\\]+label-([a-zA-Z0-9]+)"
106+
"pattern": "[_/\\\\]+label-([a-zA-Z0-9+]+)"
107107
},
108108
{
109109
"name": "fmapid",
110-
"pattern": "[_/\\\\]+fmapid-([a-zA-Z0-9]+)"
110+
"pattern": "[_/\\\\]+fmapid-([a-zA-Z0-9+]+)"
111111
},
112112
{
113113
"name": "desc",
114-
"pattern": "[_/\\\\]+desc-([a-zA-Z0-9]+)"
114+
"pattern": "[_/\\\\]+desc-([a-zA-Z0-9+]+)"
115115
},
116116
{
117117
"name": "from",
118-
"pattern": "(?:^|_)from-([a-zA-Z0-9\\+]+).*xfm"
118+
"pattern": "(?:^|_)from-([a-zA-Z0-9+\\+]+).*xfm"
119119
},
120120
{
121121
"name": "to",
122-
"pattern": "(?:^|_)to-([a-zA-Z0-9\\+]+).*xfm"
122+
"pattern": "(?:^|_)to-([a-zA-Z0-9+\\+]+).*xfm"
123123
},
124124
{
125125
"name": "mode",
@@ -131,19 +131,19 @@
131131
},
132132
{
133133
"name": "model",
134-
"pattern": "model-([a-zA-Z0-9]+)"
134+
"pattern": "model-([a-zA-Z0-9+]+)"
135135
},
136136
{
137137
"name": "subset",
138-
"pattern": "subset-([a-zA-Z0-9]+)"
138+
"pattern": "subset-([a-zA-Z0-9+]+)"
139139
},
140140
{
141141
"name": "resolution",
142-
"pattern": "res-([a-zA-Z0-9]+)"
142+
"pattern": "res-([a-zA-Z0-9+]+)"
143143
},
144144
{
145145
"name": "density",
146-
"pattern": "res-([a-zA-Z0-9]+)"
146+
"pattern": "res-([a-zA-Z0-9+]+)"
147147
},
148148
{
149149
"name": "cohort",

0 commit comments

Comments
 (0)