浏览代码

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

Torkel Ödegaard 9 年之前
父节点
当前提交
d8499e6941
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 }));
         }
       }