mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-26 01:03:46 +01:00
Fix text.trim_spacing
This commit is contained in:
parent
651593639c
commit
9325d65ceb
2
text.lua
2
text.lua
@ -58,7 +58,7 @@ end
|
|||||||
trim_right = trim_end
|
trim_right = trim_end
|
||||||
|
|
||||||
function trim_spacing(text)
|
function trim_spacing(text)
|
||||||
return text:match"%s*(.-)%s*"
|
return text:match"^%s*(.-)%s*$"
|
||||||
end
|
end
|
||||||
|
|
||||||
local inputstream_metatable = {
|
local inputstream_metatable = {
|
||||||
|
Loading…
Reference in New Issue
Block a user