mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
support regex expansion in templating "Regex" field (#6565)
This commit is contained in:
parent
4f5dc6104f
commit
91999851cb
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user