frontello-datas-format
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -8,3 +8,3 @@ "use strict"; | ||
this.pce = pce; | ||
this.pce = this.pce.replace(/\D/g, ''); | ||
this.pce = this.pce.replace(/[^GI0-9]/g, ''); | ||
} | ||
@@ -19,2 +19,6 @@ | ||
{ | ||
if (this.pce.substring(0, 2) == 'GI') { | ||
return this.pce; | ||
} | ||
let pce = this.pce; | ||
@@ -40,2 +44,6 @@ | ||
{ | ||
if (!/^GI[0-9]{6}$/.test(this.pce)) { | ||
return true; | ||
} | ||
if (!/^[0-9]{14}$/.test(this.pce)) { | ||
@@ -42,0 +50,0 @@ return false; |
{ | ||
"name": "frontello-datas-format", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "UI format", | ||
@@ -5,0 +5,0 @@ "main": "format.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12207
512