fix: Correctly calculate trie

This commit is contained in:
Ed Page 2022-10-04 10:57:28 -05:00
parent f78135acd2
commit 2b667ffe55

View file

@ -28,9 +28,9 @@ impl<V> DictTrie<V> {
match child.children {
DictTrieChild::Nested(n) => {
let byte = bytes[i];
let index = if (b'a'..b'z').contains(&byte) {
let index = if (b'a'..=b'z').contains(&byte) {
byte - b'a'
} else if (b'A'..b'Z').contains(&byte) {
} else if (b'A'..=b'Z').contains(&byte) {
byte - b'A'
} else {
return self.unicode.find(word);