From dcb8215a3f89d2d3c3acb4e6e923568a2b71db55 Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Mon, 21 Sep 2020 21:40:48 +0200 Subject: [PATCH] Fix point release and revision detection in Version:getShortVersion (#6693) --- frontend/version.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/version.lua b/frontend/version.lua index 9b3353681..fd52ba2f9 100644 --- a/frontend/version.lua +++ b/frontend/version.lua @@ -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