Commit d8499e69 by Torkel Ödegaard

fix(influxdb): added regex start string char to templating suggestion, fixes #4405

parent 105a678d
......@@ -193,7 +193,7 @@ export class InfluxQueryCtrl extends QueryCtrl {
if (addTemplateVars) {
for (let variable of this.templateSrv.variables) {
segments.unshift(this.uiSegmentSrv.newSegment({ type: 'template', value: '/$' + variable.name + '$/', expandable: true }));
segments.unshift(this.uiSegmentSrv.newSegment({ type: 'template', value: '/^$' + variable.name + '$/', expandable: true }));
}
}
......
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