mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
chore(util) quotes, unused vars
This commit is contained in:
parent
86581245a9
commit
3ecc3a4362
1 changed files with 4 additions and 4 deletions
|
|
@ -338,7 +338,7 @@
|
|||
*/
|
||||
|
||||
this.isContainStr = function(pStr1, pStr2) {
|
||||
var i, n, regExp, str,
|
||||
var i, n, str,
|
||||
ret = Util.isString(pStr1);
|
||||
|
||||
if (ret)
|
||||
|
|
@ -545,7 +545,7 @@
|
|||
isStr = Util.isString(pStr);
|
||||
|
||||
if (isStr)
|
||||
lRet = pStr.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
||||
lRet = pStr.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
|
||||
|
||||
return lRet;
|
||||
};
|
||||
|
|
@ -977,7 +977,7 @@
|
|||
minutes = minutes < 10 ? '0' + minutes : minutes;
|
||||
seconds = seconds < 10 ? '0' + seconds : seconds;
|
||||
|
||||
lRet = hours + ":" + minutes + ":" + seconds;
|
||||
lRet = hours + ':' + minutes + ':' + seconds;
|
||||
|
||||
return lRet;
|
||||
};
|
||||
|
|
@ -1017,7 +1017,7 @@
|
|||
day = date.getDate(),
|
||||
month = date.getMonth() + 1,
|
||||
year = date.getFullYear(),
|
||||
lRet = year + "-" + month + "-" + day + " " + Util.getTime();
|
||||
lRet = year + '-' + month + '-' + day + ' ' + Util.getTime();
|
||||
|
||||
return lRet;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue