corebasic 1.0.142 → 1.0.143

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.
Files changed (2) hide show
  1. package/libs/utils.js +2 -1
  2. package/package.json +1 -1
package/libs/utils.js CHANGED
@@ -219,7 +219,8 @@ export const excludeMiddleware = function(middleware, ...paths) {
219
219
 
220
220
  export function parseMob(mob, code) {
221
221
  code = code ?? "IN"
222
-
222
+ if (isEmpty(mob))
223
+ return mob
223
224
  mob = mob.trim().replace(/(,| |-|\+)/g, '') // remove comma, space, hyphen and plus
224
225
  mob = mob.startsWith("0") ? mob.replace(/^0*/,'') : mob // remove starting n zeroes
225
226
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.142",
4
+ "version": "1.0.143",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {