Browse Source

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

Torkel Ödegaard 9 years ago
parent
commit
d8499e6941
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/plugins/datasource/influxdb/query_ctrl.ts

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

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