diff --git a/lib/util.js b/lib/util.js index 76fcd76e..ad856671 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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; };