aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-05-12 03:41:00 +0200
committerV <vendicated@riseup.net>2023-05-12 03:41:15 +0200
commitade31f993b61722c16e97c79bd542a6d111049fc (patch)
treea5f48a634bae2ae4e0bc31fb6a6f324d333a7da1 /src/components
parent3c7496ac6d72534c9b285ac789d95a4040a7385c (diff)
downloadVencord-ade31f993b61722c16e97c79bd542a6d111049fc.tar.gz
Vencord-ade31f993b61722c16e97c79bd542a6d111049fc.tar.bz2
Vencord-ade31f993b61722c16e97c79bd542a6d111049fc.zip
Implement plugin tags
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PluginSettings/index.tsx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx
index 8ccc740..e1b36ef 100644
--- a/src/components/PluginSettings/index.tsx
+++ b/src/components/PluginSettings/index.tsx
@@ -228,9 +228,12 @@ export default function PluginSettings() {
if (enabled && searchValue.status === SearchStatus.DISABLED) return false;
if (!enabled && searchValue.status === SearchStatus.ENABLED) return false;
if (!searchValue.value.length) return true;
+
+ const v = searchValue.value.toLowerCase();
return (
- plugin.name.toLowerCase().includes(searchValue.value.toLowerCase()) ||
- plugin.description.toLowerCase().includes(searchValue.value.toLowerCase())
+ plugin.name.toLowerCase().includes(v) ||
+ plugin.description.toLowerCase().includes(v) ||
+ plugin.tags?.some(t => t.toLowerCase().includes(v))
);
};