From 53dcd4b2290c2e8212a5fabd6f95a140cffe133d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 5 Mar 2021 22:33:06 +0300 Subject: [PATCH] fix plugins not shown as already installed if they have more than 1 dash --- js/PrefHelpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) =>