From acbaef190757cfe43ffb40a428e3167300c61cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 2 Jun 2016 12:08:13 +0200 Subject: [PATCH] fix(influxdb): fixed issue with backslash escaping in tag filter, fixes #5249 --- public/app/plugins/datasource/influxdb/influx_query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/influxdb/influx_query.ts b/public/app/plugins/datasource/influxdb/influx_query.ts index ff003859277..1def8e8f424 100644 --- a/public/app/plugins/datasource/influxdb/influx_query.ts +++ b/public/app/plugins/datasource/influxdb/influx_query.ts @@ -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');