Skip to content

Commit

Permalink
fix query parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
NilPtrDeref committed Mar 26, 2024
1 parent 4c8e58c commit 058e587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func tokenize(query string) ([]token, error) {
i++
}
tokens = append(tokens, token{_type: token_number, value: string(num)})
} else if unicode.IsLetter(runes[i+1]) {
} else if unicode.IsLetter(runes[i]) {
word := []rune{runes[i]}
for i+1 < len(runes) && unicode.IsLetter(runes[i+1]) {
word = append(word, runes[i+1])
Expand Down

0 comments on commit 058e587

Please sign in to comment.