mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
fix uh building the tree like 5 times too many
This commit is contained in:
10 files changed
+33
-31
No files matched your search
@@ -18,7 +18,7 @@ class Trie: ObservableObject {
|
||||
@Published var root: TrieNode = TrieNode()
|
||||
@Published var dict: [String:Emoji] = [:]
|
||||
|
||||
func insert(word: String, emoji: Emoji) {
|
||||
func insert(word: String) {
|
||||
let word = word.lowercased()
|
||||
var currentNode = root
|
||||
let indices = word.indices
|
||||
|
||||