Fix truncated character in titles on index page
parent
f47f31cf14
commit
3e3c8feef2
|
@ -28,11 +28,7 @@ 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
|
||||
return string.sub(full_str, fi2 + 1, ei1 - 1)
|
||||
end
|
||||
|
||||
|
||||
|
|
Reference in New Issue