浏览代码

support regex expansion in templating "Regex" field (#6565)

Mitsuhiro Tanda 9 年之前
父节点
当前提交
91999851cb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/features/templating/query_variable.ts

+ 1 - 1
public/app/features/templating/query_variable.ts

@@ -136,7 +136,7 @@ export class QueryVariable implements Variable {
     options = [];
 
     if (this.regex) {
-      regex = kbn.stringToJsRegex(this.templateSrv.replace(this.regex));
+      regex = kbn.stringToJsRegex(this.templateSrv.replace(this.regex, {}, 'regex'));
     }
 
     for (i = 0; i < metricNames.length; i++) {