mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(console) regExp: match -> test
This commit is contained in:
parent
39dc6d6379
commit
33119558c3
1 changed files with 2 additions and 2 deletions
|
|
@ -257,8 +257,8 @@
|
|||
regExpRoot = new RegExp('^[/\\\\]'),
|
||||
|
||||
isWildCard = Util.isContainStr(paramDir, ['*', '?']),
|
||||
isHome = paramDir.match(regExpHome) && !WIN,
|
||||
isRoot = paramDir.match(regExpRoot),
|
||||
isHome = regExpHome.test(paramDir) && !WIN,
|
||||
isRoot = regExpRoot.test(paramDir),
|
||||
|
||||
onExec = function (error, stdout, stderr) {
|
||||
var path = paramDir,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue