Merge pull request #622 from ZenixTheHusky/Fix-621

Fix panic on invalid version strings
This commit is contained in:
Anna 2018-08-05 15:15:42 +01:00 committed by GitHub
commit f62bd9245b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
dep.go
View file

@ -53,6 +53,10 @@ func splitDep(dep string) (string, string, string) {
return match return match
}) })
if len(split) == 0 {
return "", "", ""
}
if len(split) == 1 { if len(split) == 1 {
return split[0], "", "" return split[0], "", ""
} }