修复聊天窗带空格的消息会被截断

This commit is contained in:
MrZ626
2021-05-14 10:29:52 +08:00
parent 0ad122ce01
commit c6115e3417
2 changed files with 3 additions and 10 deletions

View File

@@ -114,9 +114,7 @@ function DATA.pasteBoard(str,page)--Paste [str] data to [page] board
local _,__
--Decode
if not str:find("%S")then return end
str=str:sub((str:find("%S"))):reverse()
str=str:sub((str:find("%S"))):reverse()
str=STRING.trim(str)
_,str=pcall(data.decode,'string','base64',str)
if not _ then return end
_,str=pcall(data.decompress,'string','zlib',str)