ps-toolkit-ui 1.20.90 → 1.20.91

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.
@@ -6866,9 +6866,7 @@
6866
6866
  }
6867
6867
  if (_this.inp.type === exports.InputType.Number || _this.inp.type === exports.InputType.Price) {
6868
6868
  var v = vlu.toString().replace(/,/g, '');
6869
- console.log(v, 'vvvvv');
6870
- console.log(/^-?\d+([.,]\d+)?$/.test(v), 'testtesttest');
6871
- if (!/^-?\d+([.,]\d+)?$/.test(v)) {
6869
+ if (!/^-?\d+([.]\d+)?$/.test(v)) {
6872
6870
  _this.inp.error = exports.InputError.Invalid;
6873
6871
  return false;
6874
6872
  }
@@ -6918,7 +6916,10 @@
6918
6916
  }
6919
6917
  v = HelperClass.fixChars(v);
6920
6918
  if (v && _this.inp.type === exports.InputType.Number || _this.inp.type === exports.InputType.Price) {
6921
- v = parseFloat(v.toString().replace(/,/g, '')) || 0;
6919
+ var vlu = v.toString().replace(/,/g, '');
6920
+ if (/^-?\d+([.]\d+)?$/.test(vlu)) {
6921
+ v = parseFloat(vlu);
6922
+ }
6922
6923
  }
6923
6924
  return v.toString();
6924
6925
  };