mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 22:25:26 +00:00
Properly handle build metadata in semver parsing in plugin (#797)
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
## Unreleased Changes
|
## Unreleased Changes
|
||||||
|
|
||||||
|
* Fixed bug with parsing version for plugin validation ([#797])
|
||||||
|
|
||||||
|
[#797]: https://github.com/rojo-rbx/rojo/pull/797
|
||||||
|
|
||||||
## [7.4.0-rc1] - October 3, 2023
|
## [7.4.0-rc1] - October 3, 2023
|
||||||
### Additions
|
### Additions
|
||||||
#### Project format
|
#### Project format
|
||||||
|
|||||||
@@ -3,8 +3,9 @@ local strict = require(script.Parent.strict)
|
|||||||
local isDevBuild = script.Parent.Parent:FindFirstChild("ROJO_DEV_BUILD") ~= nil
|
local isDevBuild = script.Parent.Parent:FindFirstChild("ROJO_DEV_BUILD") ~= nil
|
||||||
|
|
||||||
local Version = script.Parent.Parent.Version
|
local Version = script.Parent.Parent.Version
|
||||||
local realVersion = Version.Value:split(".")
|
local major, minor, patch, metadata = Version.Value:match("^(%d+)%.(%d+)%.(%d+)(.*)$")
|
||||||
|
|
||||||
|
local realVersion = { major, minor, patch, metadata }
|
||||||
for i = 1, 3 do
|
for i = 1, 3 do
|
||||||
local num = tonumber(realVersion[i])
|
local num = tonumber(realVersion[i])
|
||||||
if num then
|
if num then
|
||||||
|
|||||||
Reference in New Issue
Block a user