mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix point release and revision detection in Version:getShortVersion (#6693)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user