mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Merge pull request #622 from ZenixTheHusky/Fix-621
Fix panic on invalid version strings
This commit is contained in:
commit
f62bd9245b
1 changed files with 4 additions and 0 deletions
4
dep.go
4
dep.go
|
@ -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], "", ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue