ps-toolkit-ui 1.7.39 → 1.7.42

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.
@@ -5924,7 +5924,7 @@
5924
5924
  }
5925
5925
  if (_this.inp.type === exports.InputType.Number || _this.inp.type === exports.InputType.Price) {
5926
5926
  var v = _this.inp.value.toString().replace(/,/g, '');
5927
- if (!/^[-]?\d+$/.test(v)) {
5927
+ if (!/^-?\d+([.,]\d+)?$/.test(v)) {
5928
5928
  _this.inp.error = exports.InputError.Invalid;
5929
5929
  return false;
5930
5930
  }