mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00
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:
parent
16adf2cd8e
commit
ddd6d7b6bd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user