Properly handle build metadata in semver parsing in plugin (#797)

This commit is contained in:
Micah
2023-10-03 22:23:18 -07:00
committed by GitHub
parent f467fa4e59
commit bfd2c885db
2 changed files with 6 additions and 1 deletions

View File

@@ -3,8 +3,9 @@ local strict = require(script.Parent.strict)
local isDevBuild = script.Parent.Parent:FindFirstChild("ROJO_DEV_BUILD") ~= nil
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
local num = tonumber(realVersion[i])
if num then