feature(console) regExp: match -> test

This commit is contained in:
coderaiser 2014-08-22 08:57:26 -04:00
parent a15925e3ce
commit f2cb797ae2

View file

@ -112,8 +112,8 @@
connName, ret,
isVolume = win.isChangeVolume(command),
isCD = command.match(new RegExp('^cd ?')),
isCDWin = command.match(new RegExp('^cd ?', 'i')),
isCD = /^cd ?/.test(command),
isCDWin = /^cd ?/i.test(command),
symbolsExec = ['*', '&', '{', '}', '|', '\'', '"', ';'],
isSymbol = Util.isContainStr(command, symbolsExec),