@stbmoz-onboarding/core 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,6 +173,17 @@ export function isBIValid (BINumber) {
173
173
  }
174
174
  }
175
175
 
176
+ export function isValidCertificateNumber(number){
177
+ try {
178
+ if(/^([0-9]{9})$/.test(number)){
179
+ return true
180
+ }
181
+ throw new Error()
182
+ } catch (error) {
183
+ return false
184
+ }
185
+ }
186
+
176
187
 
177
188
  export function isPDF(filedata) {
178
189
  let aux = filedata.name.split(".")
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stbmoz-onboarding/core",
3
3
  "type": "module",
4
- "version": "1.0.16",
4
+ "version": "1.0.17",
5
5
  "description": "\"core module\"",
6
6
  "main": "index.js",
7
7
  "scripts": {