@wavemaker/app-ng-runtime 11.5.1-next.40401 → 11.5.1-rc.154

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.
@@ -1422,16 +1422,9 @@ class NumberLocale extends BaseInput {
1422
1422
  * @returns {number}
1423
1423
  */
1424
1424
  parseNumber(val) {
1425
- // WMS-22179: split number based on the decimal seperator in the val
1426
- let seperator;
1427
- if (val.indexOf(this.DECIMAL) > -1) {
1428
- seperator = this.DECIMAL;
1429
- }
1430
- else {
1431
- seperator = '.';
1432
- }
1425
+ // WMS-22179: split number based on the decimal separator in the val
1433
1426
  // splits string into two parts. decimal and number.
1434
- const parts = val.split(seperator);
1427
+ const parts = val.split(this.inputmode === INPUTMODE.FINANCIAL ? (val.indexOf(this.DECIMAL) > -1 ? this.DECIMAL : '.') : this.DECIMAL);
1435
1428
  if (!parts.length) {
1436
1429
  return null;
1437
1430
  }