mirror of
https://github.com/appgurueu/modlib.git
synced 2024-12-23 05:42:28 +01:00
Add text.trim_spacing
This commit is contained in:
parent
d1a285be33
commit
c13f21c444
4
text.lua
4
text.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user