From 8a32c2c8c34f520f8311d4cae6182b30fdec8ac7 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sat, 13 May 2023 11:50:59 -0500 Subject: [PATCH] unneeded escape in regex --- cmd/spot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/spot/main.go b/cmd/spot/main.go index bd0fa0dc..3c0d0c7c 100644 --- a/cmd/spot/main.go +++ b/cmd/spot/main.go @@ -352,7 +352,7 @@ func formatErrorString(input string) string { return input } - errorsRe := regexp.MustCompile(`\[\d+\] {([^}]+)}`) + errorsRe := regexp.MustCompile(`\[\d+] {([^}]+)}`) errorsMatches := errorsRe.FindAllStringSubmatch(input, -1) formattedErrors := make([]string, 0, len(errorsMatches))