Lint fixes

pull/4649/head
Tuğçe Küçükoğlu 2023-10-17 12:16:32 +03:00
parent 69770ccf5b
commit 7035cb777a
1 changed files with 2 additions and 0 deletions

View File

@ -771,9 +771,11 @@ export default {
getSelectedItemsLabel() {
let pattern = /{(.*?)}/;
const selectedItemsLabel = this.$primevue.config.locale.selectionMessage || this.selectedItemsLabel;
if (pattern.test(selectedItemsLabel)) {
return selectedItemsLabel.replace(selectedItemsLabel.match(pattern)[0], this.modelValue.length + '');
}
return selectedItemsLabel;
},
onToggleAll(event) {