Skip to content

Commit

Permalink
Fixes header regexp
Browse files Browse the repository at this point in the history
Fixed header so upper case can be matched in server version names.
Fixes part of #3
  • Loading branch information
leucos committed Jun 4, 2019
1 parent e3d3283 commit 8b9319a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8b9319a

Please sign in to comment.