Closed leizor closed 1 year ago
Fixes https://github.com/go-graphite/carbonapi/issues/747.
This PR expands definition of whitespace being trimmed during query parsing to include any rune that satisfies unicode.IsSpace.
unicode.IsSpace
This allows the parser to parse queries that look like this:
alias( foo.bar.baz, 'asdf', )
The above query will be parsed the same as this:
alias(foo.bar.baz, 'asdf')
This behavior is consistent with the behavior in https://github.com/graphite-project/graphite-web.
Fixes https://github.com/go-graphite/carbonapi/issues/747.
This PR expands definition of whitespace being trimmed during query parsing to include any rune that satisfies
unicode.IsSpace
.This allows the parser to parse queries that look like this:
The above query will be parsed the same as this:
This behavior is consistent with the behavior in https://github.com/graphite-project/graphite-web.