mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
minor changes
This commit is contained in:
parent
49b6f672e7
commit
f3612012c0
1 changed files with 6 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ Util = exports || {};
|
|||
var lArg = pArg,
|
||||
lConsole = Scope.console,
|
||||
lDate = '[' + Util.getDate() + '] ';
|
||||
|
||||
|
||||
if(lConsole && pArg)
|
||||
lConsole.log(lDate, lArg);
|
||||
|
||||
|
|
@ -136,7 +136,11 @@ Util = exports || {};
|
|||
};
|
||||
|
||||
Util.replaceStr = function(pStr, pFrom, pTo){
|
||||
var lRet = pStr.replace(new RegExp(pFrom, 'g'), pTo);
|
||||
var lRet;
|
||||
|
||||
if(pStr && pFrom && pTo)
|
||||
lRet = pStr.replace(new RegExp(pFrom, 'g'), pTo);
|
||||
|
||||
return lRet;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue