Bläddra i källkod

Merge branch 'v3.0.x'

Torkel Ödegaard 9 år sedan
förälder
incheckning
49fe90874a
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      public/app/plugins/datasource/influxdb/influx_query.ts

+ 1 - 1
public/app/plugins/datasource/influxdb/influx_query.ts

@@ -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');