From 3ecc3a4362e7bc77c92e760dc1f6e4208f313609 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 23 Apr 2014 07:47:12 -0400 Subject: [PATCH] chore(util) quotes, unused vars --- lib/util.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; };