mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
feature(console) regExp: match -> test
This commit is contained in:
parent
a15925e3ce
commit
f2cb797ae2
1 changed files with 2 additions and 2 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue