Skip to content

Commit

Permalink
Allow - in event query
Browse files Browse the repository at this point in the history
  • Loading branch information
codchen committed Aug 15, 2024
1 parent 784a8e0 commit 1a732b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pubsub/query/syntax/scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func (s *Scanner) invalid(ch rune) error {
func isDigit(r rune) bool { return '0' <= r && r <= '9' }

func isTagRune(r rune) bool {
return r == '.' || r == '_' || unicode.IsLetter(r) || unicode.IsDigit(r)
return r == '.' || r == '_' || r == '-' || unicode.IsLetter(r) || unicode.IsDigit(r)
}

func isTimeRune(r rune) bool {
Expand Down

0 comments on commit 1a732b2

Please sign in to comment.