diff --git a/text.lua b/text.lua index 0a8d987..fdfc255 100644 --- a/text.lua +++ b/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 = {