Closed martin-sucha closed 1 year ago
Also it seems the regex should not include ?
after go
, but I have not included this change in the pull request: var versionRegexp = regexp.MustCompile(`go([0-9]+)(\.[0-9]+)?(\.[0-9]+)?`)
Hey, thanks! Let's make sure this works on dev version of Go, why not. Do you mind adding test and ensuring existing tests don't fail?
Fixed.
Development versions of Go have an additional token before the version:
Use the regular expression on the whole output of go version instead of just on the third token.
Fixes https://github.com/bwplotka/bingo/issues/131