We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe11bf8 commit 4ca2337Copy full SHA for 4ca2337
1 file changed
git/semv.go
@@ -86,8 +86,8 @@ func (v *Semv) PreRelease(name string) (*Semv, error) {
86
}
87
88
similar := list.FindSimilar(v.data)
89
- if similar.String() != "0.0.0" {
90
- v.data = similar
+ if similar.IsEmpty() == false {
+ v.data = similar.data
91
92
93
if len(v.data.Pre) > 0 {
0 commit comments