fix plugins not shown as already installed if they have more than 1 dash

This commit is contained in:
Andrew Dolgov 2021-03-05 22:33:06 +03:00
parent 2cd159e2ce
commit 53dcd4b229
1 changed files with 1 additions and 1 deletions

View File

@ -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) =>