Fix a regression with RegExp.