ignore trailing whitespace (#10344)

This commit is contained in:
Mitsuhiro Tanda
2017-12-26 19:59:03 +09:00
committed by Torkel Ödegaard
parent 24723cdb3c
commit 6d5628f2ea

View File

@@ -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) {