feature(cloudcmd) speed up: RegExp.test -> indexOf