From bfd2c885db54ed633267749b6ddb9987d8a609c8 Mon Sep 17 00:00:00 2001 From: Micah Date: Tue, 3 Oct 2023 22:23:18 -0700 Subject: [PATCH] Properly handle build metadata in semver parsing in plugin (#797) --- CHANGELOG.md | 4 ++++ plugin/src/Config.lua | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a32f808a..fef486a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## 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 ### Additions #### Project format diff --git a/plugin/src/Config.lua b/plugin/src/Config.lua index 70eeccfa..0238b2cb 100644 --- a/plugin/src/Config.lua +++ b/plugin/src/Config.lua @@ -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