Merge branch 'v3.0.x'

This commit is contained in:
Torkel Ödegaard 2016-06-02 12:09:10 +02:00
commit 49fe90874a

View File

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