mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Prevent non-semver tags from being cut off
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user