added a minifier rule for tostring and tonumber, should reduce code size a fair bit
This commit is contained in:
parent
4fb2fc0e0e
commit
45abd567de
@ -1,4 +1,4 @@
|
|||||||
tT,p,cT,pC,C,T={},1,1,1,coroutine,table
|
tT,p,cT,pC,C,T,TS,TN={},1,1,1,coroutine,table,tostring,tonumber
|
||||||
function E()
|
function E()
|
||||||
if tT[cT] ~= nil then return tT[cT][3] end
|
if tT[cT] ~= nil then return tT[cT][3] end
|
||||||
end
|
end
|
||||||
|
@ -25,6 +25,8 @@ replacements={
|
|||||||
{"%-%-.-\n",""},
|
{"%-%-.-\n",""},
|
||||||
{"coroutine%.","C."},
|
{"coroutine%.","C."},
|
||||||
{"table%.","T."},
|
{"table%.","T."},
|
||||||
|
{"tostring","TS"},
|
||||||
|
{"tonumber","TN"},
|
||||||
}
|
}
|
||||||
for k,v in ipairs(replacements) do
|
for k,v in ipairs(replacements) do
|
||||||
while ss:find(v[1]) ~= nil do
|
while ss:find(v[1]) ~= nil do
|
||||||
|
Loading…
Reference in New Issue
Block a user