ps-toolkit-ui 1.12.86 → 1.12.87

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.
@@ -5548,7 +5548,7 @@
5548
5548
  _this.inp.error = exports.InputError.Required;
5549
5549
  return false;
5550
5550
  }
5551
- if (_this.inp.addNew && _this.inp.value == null && _this.inp.search != null && /^\d+$/.test(_this.inp.search.replace(/-/g, '').replace(/\./g, ''))) {
5551
+ if (_this.inp.addNew && _this.inp.value == null && _this.inp.search != null && !_this.inp.search.startsWith('0') && /^\d+$/.test(_this.inp.search.replace(/-/g, '').replace(/\./g, ''))) {
5552
5552
  _this.inp.error = exports.InputError.Invalid;
5553
5553
  return false;
5554
5554
  }