mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Improved regexp matcher in TestAnalyzeRealQueries
Signed-off-by: Marco Pracucci <marco@pracucci.com>
This commit is contained in:
parent
20c56ae9e0
commit
c28d940234
|
@ -665,7 +665,7 @@ func TestAnalyzeRealQueries(t *testing.T) {
|
|||
queryStartTimes []time.Time
|
||||
}
|
||||
|
||||
labelValueRE := regexp.MustCompile(`=~\\"([^"]+)\\"`)
|
||||
labelValueRE := regexp.MustCompile(`=~(?:\\"|')([^"']*)(?:\\"|')`)
|
||||
tsRE := regexp.MustCompile(`ts=([^ ]+)`)
|
||||
shardedQueriesRE := regexp.MustCompile(`sharded_queries=(\d+)`)
|
||||
splitQueriesRE := regexp.MustCompile(`split_queries=(\d+)`)
|
||||
|
|
Loading…
Reference in a new issue