primevue 4.3.0 → 4.3.1

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.
@@ -580,7 +580,7 @@ export default {
580
580
  return false;
581
581
  },
582
582
  isDecimalSign(char) {
583
- if (this.locale.includes('fr') && ['.', ','].includes(char) || this._decimal.test(char)) {
583
+ if ((this.locale?.includes('fr') && ['.', ','].includes(char)) || this._decimal.test(char)) {
584
584
  this._decimal.lastIndex = 0;
585
585
 
586
586
  return true;
@@ -623,7 +623,8 @@ var script = {
623
623
  return false;
624
624
  },
625
625
  isDecimalSign: function isDecimalSign(_char3) {
626
- if (this.locale.includes('fr') && ['.', ','].includes(_char3) || this._decimal.test(_char3)) {
626
+ var _this$locale;
627
+ if ((_this$locale = this.locale) !== null && _this$locale !== void 0 && _this$locale.includes('fr') && ['.', ','].includes(_char3) || this._decimal.test(_char3)) {
627
628
  this._decimal.lastIndex = 0;
628
629
  return true;
629
630
  }