From 7035cb777a88f6a8290f7a98fea7ca19ccd1b41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Tue, 17 Oct 2023 12:16:32 +0300 Subject: [PATCH] Lint fixes --- components/lib/multiselect/MultiSelect.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/lib/multiselect/MultiSelect.vue b/components/lib/multiselect/MultiSelect.vue index 3ba42aee2..37e044700 100755 --- a/components/lib/multiselect/MultiSelect.vue +++ b/components/lib/multiselect/MultiSelect.vue @@ -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) {