Skip to content

Commit

Permalink
unneeded escape in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed May 13, 2023
1 parent 8310446 commit 8a32c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/spot/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8a32c2c

Please sign in to comment.