修复粘贴场地可能报错,补充缺失的文本
This commit is contained in:
@@ -114,7 +114,9 @@ function DATA.pasteBoard(str,page)--Paste [str] data to [page] board
|
||||
local _,__
|
||||
|
||||
--Decode
|
||||
str=str:sub(str:find("%S"),str:find(".%s-$"))
|
||||
if not str:find("%S")then return end
|
||||
str=str:sub((str:find("%S"))):reverse()
|
||||
str=str:sub((str:find("%S"))):reverse()
|
||||
_,str=pcall(data.decode,'string','base64',str)
|
||||
if not _ then return end
|
||||
_,str=pcall(data.decompress,'string','zlib',str)
|
||||
|
||||
Reference in New Issue
Block a user