diff --git a/CHANGELOG.md b/CHANGELOG.md index a32f808aa..fef486a41 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 70eeccfa8..0238b2cb6 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