1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 10:55:56 +00:00

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

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