From 91999851cba8630ab3985a6cd80fa1a05394f5aa Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Tue, 31 Jan 2017 23:21:53 +0900 Subject: [PATCH] support regex expansion in templating "Regex" field (#6565) --- public/app/features/templating/query_variable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/templating/query_variable.ts b/public/app/features/templating/query_variable.ts index 92b150f2f15..7dfcb854194 100644 --- a/public/app/features/templating/query_variable.ts +++ b/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++) {