pkg/package/version: Better search for last +

This commit is contained in:
Daniele Rondina 2020-03-29 09:10:52 +02:00
parent 9b61ed9e1d
commit ee66839bd3

View File

@ -162,7 +162,7 @@ func ParseVersion(v string) (PkgVersionSelector, error) {
}
// Check if build number is present
buildIdx := strings.Index(v, "+")
buildIdx := strings.LastIndex(v, "+")
buildVersion := ""
if buildIdx > 0 {
// <pre-release> ::= <dot-separated pre-release identifiers>