Update regex that matches version to accept +hash in version string (#1225)

Signed-off-by: Alexander Wels <awels@redhat.com>
This commit is contained in:
Alexander Wels 2020-06-09 07:51:37 -04:00 committed by GitHub
parent 16adf2cd8e
commit ddd6d7b6bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ const (
var (
versionRegex = regexp.MustCompile(`ubernetes .*v(\d+\.\d+\.\d+)`)
versionRegexServer = regexp.MustCompile(`Server Version: .*({.*})`)
versionRegexGitVersion = regexp.MustCompile(`GitVersion:"v(\d+\.\d+\.\d+)"`)
versionRegexGitVersion = regexp.MustCompile(`GitVersion:"v(\d+\.\d+\.\d+)\+?\S*"`)
)
// CDIFailHandler call ginkgo.Fail with printing the additional information