corebasic 1.0.164 → 1.0.165
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.
- package/libs/utils.js +2 -0
- package/package.json +1 -1
package/libs/utils.js
CHANGED
|
@@ -239,6 +239,8 @@ export function parseMob(mob, code) {
|
|
|
239
239
|
code = code ?? "IN"
|
|
240
240
|
if (isEmpty(mob))
|
|
241
241
|
return mob
|
|
242
|
+
if (mob.startsWith("MOB_"))
|
|
243
|
+
return mob
|
|
242
244
|
mob = mob.trim().replace(/(,| |-|\+)/g, '') // remove comma, space, hyphen and plus
|
|
243
245
|
mob = mob.startsWith("0") ? mob.replace(/^0*/,'') : mob // remove starting n zeroes
|
|
244
246
|
|