Commit e71b13d9 by Denis Doria Committed by Torkel Ödegaard

Improve regex detection for influxdb measurement #7276 (#7734)

parent fe970f66
......@@ -167,7 +167,7 @@ export default class InfluxQuery {
var policy = this.target.policy;
var measurement = this.target.measurement || 'measurement';
if (!measurement.match('^/.*/')) {
if (!measurement.match('^/.*/$')) {
measurement = '"' + measurement+ '"';
} else if (interpolate) {
measurement = this.templateSrv.replace(measurement, 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