new seach algorithm in search, might remove trie :br:

remove searcterm from hoarder
move emojipackmanager
This commit is contained in:
neon443 committed 2026-03-15 02:24:04 +00:00
1 parent 9e2bb928ee
commit 06e15db8db
8 files changed
+52 -41

No files matched your search

+8
View File
@@ -41,6 +41,14 @@ class Trie: ObservableObject {
}
}
func search(for query: String) -> [String] {
var result: [String] = wordlist
for word in query.split(separator: " ") {
result = result.filter { $0.localizedCaseInsensitiveContains(word) }
}
return result
}
func search(exactly query: String) -> Bool {
var currentNode = root
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.