Check for RegExp in namespace code.