Commit dd5b4a25 by simnv

Slash escaping test

parent be8ec241
...@@ -135,6 +135,11 @@ define([ ...@@ -135,6 +135,11 @@ define([
expect(result).to.be('test|test2'); 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() { describe('can check if variable exists', function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment