MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / getPluginKeywords

Function getPluginKeywords

src/sidebarApps/extensions/index.js:666–682  ·  view source on GitHub ↗
(plugin)

Source from the content-addressed store, hash-verified

664}
665
666function getPluginKeywords(plugin) {
667 const { keywords } = plugin || {};
668 if (!keywords) return [];
669 if (Array.isArray(keywords)) return keywords;
670 if (typeof keywords === "string") {
671 try {
672 const parsed = JSON.parse(keywords);
673 if (Array.isArray(parsed)) return parsed;
674 } catch (error) {
675 return keywords
676 .split(",")
677 .map((item) => item.trim())
678 .filter(Boolean);
679 }
680 }
681 return [];
682}
683
684function startLoading($list) {
685 $list.$title.classList.add("loading");

Callers 1

doesPluginMatchFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected