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

This commit is contained in:
Torkel Ödegaard 2016-04-03 15:51:54 -04:00
parent 105a678d64
commit d8499e6941

View File

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