mirror of
https://github.com/0x5eal/semver-luau.git
synced 2024-12-12 15:00:36 +00:00
feat: freeze lex order constant table
This commit is contained in:
parent
f94ba14bd6
commit
3481217e40
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…
Reference in a new issue