升级STRING.readLine功能

This commit is contained in:
MrZ626
2021-08-02 03:13:51 +08:00
parent a30c0395aa
commit e5458c1ab9

View File

@@ -111,7 +111,11 @@ end
function STRING.readLine(str)
local p=str:find("\n")
return str:sub(1,p-1),str:sub(p+1)
if p then
return str:sub(1,p-1),str:sub(p+1)
else
return str,""
end
end
function STRING.packBin(s)