Prevent non-semver tags from being cut off

This commit is contained in:
Oliver Günther
2026-02-20 12:19:57 +01:00
parent 3cc1c5beb1
commit fec23fc7fe
+5 -1
View File
@@ -17,7 +17,11 @@ class Tag
end
def version
@tag.sub(/^v/, "").sub(/-rc$/, "")
if semver?
@tag.sub(/^v/, "").sub(/-rc$/, "")
else
@tag.sub(/-rc$/, "")
end
end
def to_semver_docker_tags