Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
97fb208005
1 changed files with 3 additions and 3 deletions
|
|
@ -203,14 +203,13 @@ export default function PluginSettings() {
|
|||
|
||||
const pluginFilter = useCallback((plugin: typeof Plugins[keyof typeof Plugins], newPluginsSet: Set<string> | null) => {
|
||||
const { status, tags } = searchValue;
|
||||
const enabled = isPluginEnabled(plugin.name);
|
||||
|
||||
switch (status) {
|
||||
case SearchStatus.DISABLED:
|
||||
if (enabled) return false;
|
||||
if (isPluginEnabled(plugin.name)) return false;
|
||||
break;
|
||||
case SearchStatus.ENABLED:
|
||||
if (!enabled) return false;
|
||||
if (!isPluginEnabled(plugin.name)) return false;
|
||||
break;
|
||||
case SearchStatus.EQUICORD:
|
||||
if (!PluginMeta[plugin.name].folderName.startsWith("src/equicordplugins/")) return false;
|
||||
|
|
@ -235,6 +234,7 @@ export default function PluginSettings() {
|
|||
|
||||
return (
|
||||
plugin.name.toLowerCase().includes(search.replace(/\s+/g, "")) ||
|
||||
plugin.name.match(/[A-Z]/g)?.join("").toLowerCase().includes(search) || // acronyms like BF for BetterFolders
|
||||
plugin.description.toLowerCase().includes(search) ||
|
||||
plugin.searchTerms?.some(t => t.toLowerCase().includes(search))
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue