summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-28 16:24:25 +0100
committerMartin Fischer <martin@push-f.com>2021-11-28 16:24:25 +0100
commita26504dc7c7db084303e55f5fc4dff5787165812 (patch)
treec9f0b492673cc52467b2d4a4bd3a7bee58935af7
parent51035957938833bca60676cd04876cf97bf1cbeb (diff)
search: also search flag
-rw-r--r--script.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/script.js b/script.js
index bb6e445..25d4e63 100644
--- a/script.js
+++ b/script.js
@@ -18,6 +18,9 @@
if (feat.title.toLowerCase().replaceAll('`', '').includes(query)) {
return true;
}
+ if (feat.flag && feat.flag.toLowerCase().includes(query)) {
+ return true;
+ }
if (query.length > 1 && feat.items && feat.items.some(i => i.toLowerCase().includes(query))) {
return true;
}