Sonar Major 63/30263/1
authorPrasadNaidu <RV00493633@techmahindra.com>
Mon, 5 Feb 2018 12:27:31 +0000 (17:57 +0530)
committerPrasadNaidu <RV00493633@techmahindra.com>
Mon, 5 Feb 2018 12:28:29 +0000 (17:58 +0530)
Replace == with ===
commonUtil.js:L47

Sonar Link : https://sonar.onap.org/component_issues/index?id=org.onap.aai.esr-gui%3Aaai-esr-gui#resolved=false|severities=MAJOR
Location : src/main/webapp/extsys/ems/js/commonUtil.jsChange-Id: I1f0960a64f18ad22872f025899249ffa47dab526

Change-Id: Iab29d3ac7a6049a0c482f87fb312ab7db8a11d78
Issue-ID: AAI-730
Signed-off-by: PrasadNaidu <RV00493633@techmahindra.com>
portal/src/main/webapp/extsys/ems/js/commonUtil.js

index cd56bd1..292fbe1 100644 (file)
@@ -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;
 };