This prints true: ```go c, _ := semver.NewConstraint("2") v, _ := semver.NewVersion("2.2.3") fmt.Println(c.Check(v)) ``` While this prints false: ```go c, _ := semver.NewConstraint("2.2") v, _ := semver.NewVersion("2.2.3") fmt.Println(c.Check(v)) ``` Is that intentional? If not I can fire off a PR.
Activity
mattfarina commentedon Feb 13, 2020
@alecthomas Thanks for catching this. You did find a bug.
mattfarina commentedon Feb 13, 2020
Actually, what version of sermver are you using? In semver v3 I do not get the same result as you. See https://play.golang.org/p/DhG4bHORwf-