Fix point release and revision detection in Version:getShortVersion (#6693)

reviewable/pr6694/r1
NiLuJe 4 years ago committed by GitHub
parent a5089f0272
commit dcb8215a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,10 +57,10 @@ function Version:getShortVersion()
local rev = self:getCurrentRevision()
local year, month, point, revision = rev:match("v(%d%d%d%d)%.(%d%d)%.?(%d?%d?)-?(%d*)")
self.short = year .. "." .. month
if point then
if point and point ~= "" then
self.short = self.short .. "." .. point
end
if revision then
if revision and revision ~= "" then
self.short = self.short .. "-" .. revision
end
end

Loading…
Cancel
Save