Skip to content

Commit 0928a3a

Browse files
committed
Merge pull request #767 from dmcnamee/master
regex matching bug fixed in interfaces.spm.model (closes #725)
2 parents 0db2d30 + 97eb1d7 commit 0928a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/spm/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ def _make_matlab_command(self, _):
332332
script += "condnames=names;\n"
333333
else:
334334
if self.inputs.use_derivs:
335-
script += "pat = 'Sn\([0-9*]\) (.*)';\n"
335+
script += "pat = 'Sn\([0-9]*\) (.*)';\n"
336336
else:
337-
script += "pat = 'Sn\([0-9*]\) (.*)\*bf\(1\)|Sn\([0-9*]\) .*\*bf\([2-9]\)|Sn\([0-9*]\) (.*)';\n"
337+
script += "pat = 'Sn\([0-9]*\) (.*)\*bf\(1\)|Sn\([0-9]*\) .*\*bf\([2-9]\)|Sn\([0-9]*\) (.*)';\n"
338338
script += "t = regexp(names,pat,'tokens');\n"
339339
# get sessidx for columns
340340
script += "pat1 = 'Sn\(([0-9].*)\)\s.*';\n"

0 commit comments

Comments
 (0)