diff options
author | Andrew Dolgov <[email protected]> | 2021-03-05 22:33:06 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-05 22:33:06 +0300 |
commit | 53dcd4b2290c2e8212a5fabd6f95a140cffe133d (patch) | |
tree | bc03f939191e459450415d937842bfcdcb0bc7db | |
parent | 2cd159e2cefaecb54233686cd949aac4d70b9320 (diff) |
fix plugins not shown as already installed if they have more than 1 dash
-rw-r--r-- | js/PrefHelpers.js | 2 |
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) => |