Commit 91999851 by Mitsuhiro Tanda Committed by Torkel Ödegaard

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

parent 4f5dc610
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment