MPS-19790 - disallow for spaces in the last position of a RegExp's string literal
Merge remote-tracking branch 'origin/MPS3.1' into 3.1/vaclavReg