Graphite: Lexer fix, allow equal sign (=) in metric paths, Fixes #1114

This commit is contained in:
Torkel Ödegaard 2014-11-21 10:25:36 +01:00
parent e933369f56
commit 3cde783d1d
3 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,7 @@
- [Issue #1087](https://github.com/grafana/grafana/issues/1087). Panel: Fixed IE9 crash due to angular drag drop
- [Issue #1093](https://github.com/grafana/grafana/issues/1093). SingleStatPanel: Fixed position for drilldown link tooltip when dashboard requires scrolling
- [Issue #1095](https://github.com/grafana/grafana/issues/1095). DrilldownLink: template variables in params property was not interpolated
- [Issue #1114](https://github.com/grafana/grafana/issues/1114). Graphite: Lexer fix, allow equal sign (=) in metric paths
# 1.9.0-rc1 (2014-11-17)

View File

@ -129,6 +129,7 @@ define([
i === 63 || // ?
i === 37 || // %
i === 35 || // #
i === 61 || // =
i >= 97 && i <= 122; // a-z
}

View File

@ -29,6 +29,12 @@ define([
expect(tokens[2].value).to.be('192-168-1-1');
});
it('should tokenize metric expression with equal sign', function() {
var lexer = new Lexer('apps=test');
var tokens = lexer.tokenize();
expect(tokens[0].value).to.be('apps=test');
});
it('simple function2', function() {
var lexer = new Lexer('offset(test.metric, -100)');
var tokens = lexer.tokenize();