File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -787,6 +787,9 @@ def parse_series_spec(series_spec):
787
787
788
788
# Parse the name according to our convention/specification
789
789
790
+ # leading or trailing spaces do not matter
791
+ series_spec = series_spec .strip (' ' )
792
+
790
793
# Strip off leading CAPITALS: prefix to accommodate some reported usecases:
791
794
# https://github.com/ReproNim/reproin/issues/14
792
795
# where PU: prefix is added by the scanner
@@ -988,8 +991,9 @@ def test_parse_series_spec():
988
991
{'seqtype' : 'func' , 'seqtype_label' : 'bold' }
989
992
990
993
# pdpn("bids_func_ses+_task-boo_run+") == \
991
- # order and PREFIX: should not matter
994
+ # order and PREFIX: should not matter, as well as trailing spaces
992
995
assert \
996
+ pdpn (" PREFIX:bids_func_ses+_task-boo_run+ " ) == \
993
997
pdpn ("PREFIX:bids_func_ses+_task-boo_run+" ) == \
994
998
pdpn ("bids_func_ses+_run+_task-boo" ) == \
995
999
{
You can’t perform that action at this time.
0 commit comments