mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(influxdb): fixed issue with backslash escaping in tag filter, fixes #5249
This commit is contained in:
parent
1283461b89
commit
acbaef1907
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user