diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-28 16:24:25 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-28 16:24:25 +0100 |
commit | a26504dc7c7db084303e55f5fc4dff5787165812 (patch) | |
tree | c9f0b492673cc52467b2d4a4bd3a7bee58935af7 | |
parent | 51035957938833bca60676cd04876cf97bf1cbeb (diff) |
search: also search flag
-rw-r--r-- | script.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |