Skip to content

Commit 635e0f0

Browse files
twpaynemvdan
authored andcommitted
gotooltest: fix Go version regular expression
Trivia: the first defined Go version build constraint is go1.1.
1 parent b00b079 commit 635e0f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gotooltest/setup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
var (
25-
goVersionRegex = regexp.MustCompile(`^go([1-9][0-9]*)\.(0|[1-9][0-9]*)$`)
25+
goVersionRegex = regexp.MustCompile(`^go([1-9][0-9]*)\.([1-9][0-9]*)$`)
2626

2727
goEnv struct {
2828
GOROOT string

0 commit comments

Comments
 (0)