We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e5b691 commit ff91b97Copy full SHA for ff91b97
1 file changed
tool/merger.rb
@@ -116,7 +116,7 @@ def tag(relname)
116
v, pl = version
117
if relname
118
abort "patchlevel is not -1 but '#{pl}' for preview or rc" if pl != '-1' && /-(?:preview|rc)/ =~ relname
119
- abort "patchlevel is not 0 but '#{pl}' for the first release" if pl != '0' && /-(?:preview|rc)/ !~ relname
+ abort "patchlevel is not 0 but '#{pl}' for the first release" if pl != '0' && relname.end_with?(".0")
120
pl = relname[/-(.*)\z/, 1]
121
curver = "#{v.join('.')}#{("-#{pl}" if pl)}"
122
if relname != curver
0 commit comments