Rename escapeReg to escapeRegExp.