mirror of
https://github.com/mudler/luet.git
synced 2025-08-30 13:28:55 +00:00
pkg/package/version: Better search for last +
This commit is contained in:
parent
9b61ed9e1d
commit
ee66839bd3
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user