ps-toolkit-ui 1.3.87 → 1.3.88

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.
@@ -2843,7 +2843,7 @@
2843
2843
  '<div class="part4">' + parts[3] + '</div>' +
2844
2844
  '</div>';
2845
2845
  }
2846
- else if (parts.length === 2 && parts.some(function (x) { return !isNaN(parseInt(x, 10)); })) {
2846
+ else if (parts.length === 2 && parts.every(function (x) { return /^[0-9]+$/.test(x); })) {
2847
2847
  return '<div class="plaque plaque-m">' +
2848
2848
  '<div class="part1">' + parts[0] + '</div>' +
2849
2849
  '<div class="part2">' + parts[1] + '</div>' +
@@ -6637,7 +6637,7 @@
6637
6637
  this.car.displayLabel = this.carF.displayLabel = this.motor.displayLabel = false;
6638
6638
  this.inp.setValue = function (v) {
6639
6639
  if (v != null) {
6640
- if (v.split('_').length === 2 && v.split('_').some(function (x) { return !isNaN(parseInt(x, 10)); })) {
6640
+ if (v.split('_').length === 2 && v.split('_').every(function (x) { return /^[0-9]+$/.test(x); })) {
6641
6641
  _this.type = exports.VehicleType.Motorcycle;
6642
6642
  setTimeout(function () {
6643
6643
  _this.motor.setValue(v, false);