mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:21:38 +00:00
Support semver metadata in plugin version
This commit is contained in:
parent
a54364642a
commit
a1395a382a
2 changed files with 9 additions and 3 deletions
|
|
@ -34,7 +34,13 @@ function Version.compare(a, b)
|
|||
end
|
||||
|
||||
function Version.display(version)
|
||||
return table.concat(version, ".")
|
||||
local output = ("%d.%d.%d"):format(version[1], version[2], version[3])
|
||||
|
||||
if version[4] ~= nil then
|
||||
output = output .. version[4]
|
||||
end
|
||||
|
||||
return output
|
||||
end
|
||||
|
||||
return Version
|
||||
return Version
|
||||
Loading…
Add table
Add a link
Reference in a new issue