The regex in _find_mask only allowed word characters in the name, so a mask name such as mask_v1+v2+v3.nii.gz would not be recognized.
This PR makes the regex more general. However, there's an argument to be made whether we should allow "+" in mask filenames. If we don't want, then we should enforce proper filenames in cortex.db.save_mask.
The regex in
_find_mask
only allowed word characters in the name, so a mask name such asmask_v1+v2+v3.nii.gz
would not be recognized.This PR makes the regex more general. However, there's an argument to be made whether we should allow "+" in mask filenames. If we don't want, then we should enforce proper filenames in
cortex.db.save_mask
.