mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Properly handle build metadata in semver parsing in plugin (#797)
This commit is contained in:
parent
f467fa4e59
commit
bfd2c885db
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue