From e4322c2f02a4a33a95eeca008bbb3dcf056e55d7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 25 Jan 2020 19:54:34 +0100 Subject: [PATCH] Fix: Use correct regex Signed-off-by: Knut Ahlers --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index c40cfe2..920de97 100644 --- a/main.go +++ b/main.go @@ -75,7 +75,7 @@ func main() { err = handleRecord(metricBlock, regBlock.FindStringSubmatch(line)) case regQuery.MatchString(line): - err = handleRecord(metricQuery, regBlock.FindStringSubmatch(line)) + err = handleRecord(metricQuery, regQuery.FindStringSubmatch(line)) default: continue