mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-25 16:53: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
|
||||
|
||||
function trim_spacing(text)
|
||||
return text:match"%s*(.-)%s*"
|
||||
return text:match"^%s*(.-)%s*$"
|
||||
end
|
||||
|
||||
local inputstream_metatable = {
|
||||
|
Loading…
Reference in New Issue
Block a user