Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
[#194] fix nexus latest version regex
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Sep 13, 2016
1 parent 37ea339 commit ee9aafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin-dgr/common/acfullname.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (n ACFullname) LatestVersion() (string, error) {
return "", errors.Annotate(err, "Latest discovery fail")
}

r, _ := regexp.Compile(`^(\d+\.)?(\d+\.)?(\*|\d+)(\-[\dA-Za-z]+){0,1}$`) // TODO this is nexus specific
r, _ := regexp.Compile(`^\d+(.\d+){0,2}(-[\.\-\dA-Za-z]+){0,1}$`) // TODO this is nexus specific

if len(endpoints) == 0 {
return "", errs.WithF(data.WithField("aci", string(n)), "Discovery does not give an endpoint to check latest version")
Expand Down

0 comments on commit ee9aafa

Please sign in to comment.