限制最大自定义序列长度(2600) close #122

This commit is contained in:
MrZ626
2021-07-17 01:48:36 +08:00
parent 4a58967590
commit 51768a5a27

View File

@@ -47,17 +47,17 @@ function DATA.pasteSequence(str)
end end
else else
if b>=97 and b<=125 then if b>=97 and b<=125 then
ins(BAG,reg) ins(BAG,reg)if #BAG>2600 then return end
reg=b-96 reg=b-96
elseif b>=34 and b<=96 then elseif b>=34 and b<=96 then
for _=1,b-32 do for _=1,b-32 do
ins(BAG,reg) ins(BAG,reg)if #BAG>2600 then return end
end end
reg=false reg=false
end end
end end
end end
if reg then ins(BAG,reg)end if reg then ins(BAG,reg)if #BAG>2600 then return end end
return true return true
end end