forked from mio/gemwriter
Fix truncated character in titles on index page
parent
f47f31cf14
commit
3e3c8feef2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue