mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ignore trailing whitespace (#10344)
This commit is contained in:
committed by
Torkel Ödegaard
parent
24723cdb3c
commit
6d5628f2ea
@@ -12,9 +12,9 @@ export default class PrometheusMetricFindQuery {
|
|||||||
}
|
}
|
||||||
|
|
||||||
process() {
|
process() {
|
||||||
var label_values_regex = /^label_values\((?:(.+),\s*)?([a-zA-Z_][a-zA-Z0-9_]+)\)$/;
|
var label_values_regex = /^label_values\((?:(.+),\s*)?([a-zA-Z_][a-zA-Z0-9_]+)\)\s*$/;
|
||||||
var metric_names_regex = /^metrics\((.+)\)$/;
|
var metric_names_regex = /^metrics\((.+)\)\s*$/;
|
||||||
var query_result_regex = /^query_result\((.+)\)$/;
|
var query_result_regex = /^query_result\((.+)\)\s*$/;
|
||||||
|
|
||||||
var label_values_query = this.query.match(label_values_regex);
|
var label_values_query = this.query.match(label_values_regex);
|
||||||
if (label_values_query) {
|
if (label_values_query) {
|
||||||
|
|||||||
Reference in New Issue
Block a user