Skip to content

Commit

Permalink
clean up lex
Browse files Browse the repository at this point in the history
  • Loading branch information
benclive committed Jun 3, 2024
1 parent 93c97d6 commit 1656035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logql/syntax/lex.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ func tryScanBytes(number string, l *Scanner) (uint64, bool) {
s := *l
consumed := 0
for r := s.Peek(); r != scanner.EOF && !unicode.IsSpace(r); r = s.Peek() {
if !unicode.IsNumber(r) && !isBytesSizeRune(r) && r != '.' && r != '-' {
if !unicode.IsNumber(r) && !isBytesSizeRune(r) && r != '.' {
break
}
_, _ = sb.WriteRune(r)
Expand Down

0 comments on commit 1656035

Please sign in to comment.