fix on recursive mask with one recursive character only

Please consider this line to fix the problem with one recursive '#' at prefix/suffix of the mask.