mirror of
https://github.com/0x5eal/semver-luau.git
synced 2025-03-04 11:11:39 +00:00
feat: freeze lex order constant table
This commit is contained in:
parent
d2a5b28b78
commit
622a990cf8
1 changed files with 2 additions and 2 deletions
|
@ -164,11 +164,11 @@ export type ParseError =
|
||||||
|
|
||||||
Lexicographical ordering for prerelease types
|
Lexicographical ordering for prerelease types
|
||||||
]=]
|
]=]
|
||||||
local PRERELEASE_LEX_ORDER: { [PreleaseType]: number } = {
|
local PRERELEASE_LEX_ORDER: { [PreleaseType]: number } = table.freeze({
|
||||||
alpha = 1,
|
alpha = 1,
|
||||||
beta = 2,
|
beta = 2,
|
||||||
rc = 3,
|
rc = 3,
|
||||||
}
|
})
|
||||||
|
|
||||||
--[=[
|
--[=[
|
||||||
@within Semver
|
@within Semver
|
||||||
|
|
Loading…
Add table
Reference in a new issue