diff --git a/src/trie_search.c b/src/trie_search.c index bf1f4ce3..cbe32040 100644 --- a/src/trie_search.c +++ b/src/trie_search.c @@ -213,7 +213,7 @@ int trie_node_search_tail_tokens(trie_t *self, trie_node_t node, char *str, toke return i-1; } - if (token.type == WHITESPACE) continue; + if (token.type == WHITESPACE && *tail_ptr == ' ') continue; if (*tail_ptr == ' ') { tail_ptr++;