Skip to content

Commit

Permalink
Allow ';' and '=' in metric name
Browse files Browse the repository at this point in the history
Required for some cases where reply have tags
  • Loading branch information
Civil committed May 17, 2020
1 parent 05e4479 commit 9a825ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,8 @@ func IsNameChar(r byte) bool {
r == '^' || r == '$' ||
r == '<' || r == '>' ||
r == '&' || r == '#' ||
r == '/' || r == '%'
r == '/' || r == '%' ||
r == ';' || r == '=' // this could happen if returned metric contains tags
}

func isDigit(r byte) bool {
Expand Down

0 comments on commit 9a825ee

Please sign in to comment.