mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 07:13:45 +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
|
trim_right = trim_end
|
||||||
|
|
||||||
|
function trim_spacing(text)
|
||||||
|
return text:match"%s*(.-)%s*"
|
||||||
|
end
|
||||||
|
|
||||||
local inputstream_metatable = {
|
local inputstream_metatable = {
|
||||||
__index = {read = function(self, count)
|
__index = {read = function(self, count)
|
||||||
local cursor = self.cursor + 1
|
local cursor = self.cursor + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user