diff --git a/scripts/check-go-version b/scripts/check-go-version
index 3975b64fe5a09ee03d194965231e94edce1c1405..6891ca5944c300fc74034484953337067164c692 100755
--- a/scripts/check-go-version
+++ b/scripts/check-go-version
@@ -5,7 +5,7 @@ set -e
 VERSION=$( go version )
 
 # For development versions of Go, these will be empty.
-MAJOR_GOVERSION=$( echo -n "$VERSION" | grep -o 'go1\.[0-9]' || true )
+MAJOR_GOVERSION=$( echo -n "$VERSION" | grep -o 'go1\.[0-9]*' || true )
 FULL_GOVERSION=$( echo -n "$VERSION" | grep -o 'go1\.[0-9|\.]*' || true )
 
 # The list of unsupported major go versions.