🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

frontello-datas-format

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frontello-datas-format - npm Package Compare versions

Comparing version

to
1.1.9

15

energy/pce-grdf.js

@@ -8,3 +8,4 @@ "use strict";

this.pce = pce;
this.pce = this.pce.replace(/[^GI0-9]/g, '');
this.pce = this.pce.toUpperCase();
this.pce = this.pce.replace(/[^GI0-9]/gi, '');
}

@@ -20,3 +21,13 @@

if (this.pce.substring(0, 2) == 'GI') {
return this.pce;
let pce = this.pce;
if (this.pce.length > 2) {
pce = this.pce.substring(0, 2) + ' ' + this.pce.substring(2, 5);
}
if (this.pce.length > 5) {
pce = pce + ' ' + this.pce.substring(5, 8);
}
return pce;
}

@@ -23,0 +34,0 @@

2

package.json
{
"name": "frontello-datas-format",
"version": "1.1.8",
"version": "1.1.9",
"description": "UI format",

@@ -5,0 +5,0 @@ "main": "format.js",