version bumps

This commit is contained in:
Adam 2022-12-06 00:23:52 +01:00
parent c015e9c478
commit fcb870072a
7 changed files with 151 additions and 153 deletions

View file

@ -972,8 +972,7 @@ do
if not rawget(metatable, "_descriptors") then
metatable._descriptors = {}
end
local descriptor = __TS__CloneDescriptor(desc)
metatable._descriptors[key] = descriptor
metatable._descriptors[key] = __TS__CloneDescriptor(desc)
metatable.__index = descriptorIndex
metatable.__newindex = descriptorNewIndex
end
@ -1385,10 +1384,6 @@ local function __TS__MathSign(val)
return 0
end
local function __TS__Modulo50(a, b)
return a - math.floor(a / b) * b
end
local function __TS__Number(value)
local valueType = type(value)
if valueType == "number" then
@ -1609,22 +1604,6 @@ local function __TS__ParseFloat(numberString)
return ____number_1
end
local function __TS__StringSubstr(self, from, length)
if from ~= from then
from = 0
end
if length ~= nil then
if length ~= length or length <= 0 then
return ""
end
length = length + from
end
if from >= 0 then
from = from + 1
end
return string.sub(self, from, length)
end
local function __TS__StringSubstring(self, start, ____end)
if ____end ~= ____end then
____end = 0
@ -1654,9 +1633,9 @@ do
base = 16
local ____TS__Match_result__0_0
if __TS__Match(hexMatch, "-") then
____TS__Match_result__0_0 = "-" .. __TS__StringSubstr(numberString, #hexMatch)
____TS__Match_result__0_0 = "-" .. __TS__StringSubstring(numberString, #hexMatch)
else
____TS__Match_result__0_0 = __TS__StringSubstr(numberString, #hexMatch)
____TS__Match_result__0_0 = __TS__StringSubstring(numberString, #hexMatch)
end
numberString = ____TS__Match_result__0_0
end
@ -1668,7 +1647,7 @@ do
if base <= 10 then
____temp_1 = __TS__StringSubstring(parseIntBasePattern, 0, base)
else
____temp_1 = __TS__StringSubstr(parseIntBasePattern, 0, 10 + 2 * (base - 10))
____temp_1 = __TS__StringSubstring(parseIntBasePattern, 0, 10 + 2 * (base - 10))
end
local allowedDigits = ____temp_1
local pattern = ("^%s*(-?[" .. allowedDigits) .. "]*)"
@ -2378,6 +2357,22 @@ local function __TS__StringStartsWith(self, searchString, position)
return string.sub(self, position + 1, #searchString + position) == searchString
end
local function __TS__StringSubstr(self, from, length)
if from ~= from then
from = 0
end
if length ~= nil then
if length ~= length or length <= 0 then
return ""
end
length = length + from
end
if from >= 0 then
from = from + 1
end
return string.sub(self, from, length)
end
local function __TS__StringTrim(self)
local result = string.gsub(self, "^[%s ]*(.-)[%s ]*$", "%1")
return result
@ -2477,7 +2472,6 @@ return {
__TS__MathAtan2 = __TS__MathAtan2,
__TS__MathModf = __TS__MathModf,
__TS__MathSign = __TS__MathSign,
__TS__Modulo50 = __TS__Modulo50,
__TS__New = __TS__New,
__TS__Number = __TS__Number,
__TS__NumberIsFinite = __TS__NumberIsFinite,