Add text.trim_spacing

master
Lars Mueller 2021-08-29 15:41:51 +02:00
parent d1a285be33
commit c13f21c444
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ end
trim_right = trim_end
function trim_spacing(text)
return text:match"%s*(.-)%s*"
end
local inputstream_metatable = {
__index = {read = function(self, count)
local cursor = self.cursor + 1