feature(console) regExp: match -> test

This commit is contained in:
coderaiser 2014-08-26 02:57:11 -04:00
parent 39dc6d6379
commit 33119558c3

View file

@ -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,