mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
Slash escaping test
This commit is contained in:
parent
be8ec24106
commit
dd5b4a25d1
@ -135,6 +135,11 @@ define([
|
||||
expect(result).to.be('test|test2');
|
||||
});
|
||||
|
||||
it('slash should be properly escaped in regex format', function() {
|
||||
var result = _templateSrv.formatValue('Gi3/14', 'regex');
|
||||
expect(result).to.be('Gi3\\/14');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('can check if variable exists', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user