Fix truncated character in titles on index page

main
mio 2023-07-16 00:03:38 +00:00
parent f47f31cf14
commit 3e3c8feef2
1 changed files with 1 additions and 5 deletions

4
util.lua 100644 → 100755
View File

@ -28,12 +28,8 @@ end
function util.extract_str(full_str, find_str, end_str)
local fi1, fi2 = string.find(full_str, find_str, 1)
local ei1, ei2 = string.find(full_str, end_str, fi2)
if end_str == "\n" then
return string.sub(full_str, fi2 + 1, ei1 - 2)
else
return string.sub(full_str, fi2 + 1, ei1 - 1)
end
end
function util.to_bool(str)