Commit acbaef19 by Torkel Ödegaard

fix(influxdb): fixed issue with backslash escaping in tag filter, fixes #5249

parent 1283461b
...@@ -153,7 +153,7 @@ export default class InfluxQuery { ...@@ -153,7 +153,7 @@ export default class InfluxQuery {
value = this.templateSrv.replace(value, this.scopedVars); value = this.templateSrv.replace(value, this.scopedVars);
} }
if (operator !== '>' && operator !== '<') { if (operator !== '>' && operator !== '<') {
value = "'" + value.replace('\\', '\\\\') + "'"; value = "'" + value.replace(/\\/g, '\\\\') + "'";
} }
} else if (interpolate){ } else if (interpolate){
value = this.templateSrv.replace(value, this.scopedVars, 'regex'); value = this.templateSrv.replace(value, this.scopedVars, 'regex');
......
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