summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-03-05 22:33:06 +0300
committerAndrew Dolgov <[email protected]>2021-03-05 22:33:06 +0300
commit53dcd4b2290c2e8212a5fabd6f95a140cffe133d (patch)
treebc03f939191e459450415d937842bfcdcb0bc7db /js
parent2cd159e2cefaecb54233686cd949aac4d70b9320 (diff)
fix plugins not shown as already installed if they have more than 1 dash
Diffstat (limited to 'js')
-rw-r--r--js/PrefHelpers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/PrefHelpers.js b/js/PrefHelpers.js
index c171b87ce..b72dbc881 100644
--- a/js/PrefHelpers.js
+++ b/js/PrefHelpers.js
@@ -454,7 +454,7 @@ const Helpers = {
dialog.entries.forEach((plugin) => {
const is_installed = (dialog.installed_plugins
- .filter((p) => plugin.topics.map((t) => t.replace(/-/, "_")).includes(p))).length > 0;
+ .filter((p) => plugin.topics.map((t) => t.replace(/-/g, "_")).includes(p))).length > 0;
if (search_tokens.length == 0 ||
Object.values(plugin).filter((pval) =>