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>
(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;
};