mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 03:34:15 -06:00
Merge pull request #13656 from olshansky/fix-label-values-regex
fix: label values regex for single letter labels
This commit is contained in:
commit
193829adac
@ -12,7 +12,7 @@ export default class PrometheusMetricFindQuery {
|
||||
}
|
||||
|
||||
process() {
|
||||
const labelValuesRegex = /^label_values\((?:(.+),\s*)?([a-zA-Z_][a-zA-Z0-9_]+)\)\s*$/;
|
||||
const labelValuesRegex = /^label_values\((?:(.+),\s*)?([a-zA-Z_][a-zA-Z0-9_]*)\)\s*$/;
|
||||
const metricNamesRegex = /^metrics\((.+)\)\s*$/;
|
||||
const queryResultRegex = /^query_result\((.+)\)\s*$/;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user