summaryrefslogtreecommitdiffstats
path: root/portal/src
diff options
context:
space:
mode:
authorLi Zi <li.zi30@zte.com.cn>2018-02-06 01:01:56 +0000
committerGerrit Code Review <gerrit@onap.org>2018-02-06 01:01:56 +0000
commit18396b34b9b92e2ba64fc51d29a9b3c4b820cde7 (patch)
treee4f4cb3c9adc6825356dd43cffe36c4977961692 /portal/src
parentaf05f8d10f4596547b2888ae0d6d4b90f3c72b4b (diff)
parent40c2d6edcbdf9d84e8c85aedbf8c4432e92d392d (diff)
Merge "Sonar Major"
Diffstat (limited to 'portal/src')
-rw-r--r--portal/src/main/webapp/extsys/ems/js/commonUtil.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/portal/src/main/webapp/extsys/ems/js/commonUtil.js b/portal/src/main/webapp/extsys/ems/js/commonUtil.js
index af09482..4c24bca 100644
--- a/portal/src/main/webapp/extsys/ems/js/commonUtil.js
+++ b/portal/src/main/webapp/extsys/ems/js/commonUtil.js
@@ -44,7 +44,7 @@ commonUtil.parseDate = function (dateObj, format) {
(dateObj.getFullYear() + "").substr(4 - RegExp.$1.length));
for (var k in o)
if (new RegExp("(" + k + ")").test(format))
- format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] :
+ format = format.replace(RegExp.$1, RegExp.$1.length === 1 ? o[k] :
("00" + o[k]).substr(("" + o[k]).length));
return format;
};