From 8b9319a89d1d2d29b02622542313067889938b46 Mon Sep 17 00:00:00 2001 From: Michel Blanc Date: Tue, 4 Jun 2019 07:35:24 +0200 Subject: [PATCH] Fixes header regexp Fixed header so upper case can be matched in server version names. Fixes part of #3 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index ccf6fe9..859cc8c 100644 --- a/main.go +++ b/main.go @@ -358,7 +358,7 @@ func parseHeader(scanner *bufio.Scanner, meta *outputs.ServerInfo) error { scanner.Scan() // Parse server information - versionre := regexp.MustCompile(`^([^,]+),\s+Version:\s+([0-9\.]+)([a-z0-9-]+)\s+\((.*)\)\. started`) + versionre := regexp.MustCompile(`^([^,]+),\s+Version:\s+([0-9\.]+)([A-Za-z0-9-]+)\s+\((.*)\)\. started`) matches := versionre.FindStringSubmatch(version) if len(matches) != 5 {