mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 02:52:20 +00:00
Bashful attempt to satisfy travis.
This commit is contained in:
@@ -41,8 +41,10 @@ function ver:new(str)
|
|||||||
local major, minor, patch = str:match("^(%d+)%.?(%d*)%.?(%d*)$")
|
local major, minor, patch = str:match("^(%d+)%.?(%d*)%.?(%d*)$")
|
||||||
assert(type(major) == 'string',
|
assert(type(major) == 'string',
|
||||||
("Could not extract version number(s) from %q"):format(str))
|
("Could not extract version number(s) from %q"):format(str))
|
||||||
local major, minor, patch = tonumber(major), tonumber(minor), tonumber(patch)
|
local o = { major = tonumber(major),
|
||||||
local o = { major = major, minor = minor, patch = patch, str = str }
|
minor = tonumber(minor),
|
||||||
|
patch = tonumber(patch),
|
||||||
|
str = str }
|
||||||
setmetatable(o, self)
|
setmetatable(o, self)
|
||||||
self.__index = self
|
self.__index = self
|
||||||
return o
|
return o
|
||||||
|
Reference in New Issue
Block a user