Fix an error with trim on the xm handler.
This commit is contained in:
parent
fa280e433a
commit
9761a3ef0e
|
|
@ -54,6 +54,7 @@
|
||||||
|
|
||||||
--add the trim function
|
--add the trim function
|
||||||
function trim(s)
|
function trim(s)
|
||||||
|
if (s == nil) then s = ''; end
|
||||||
return s:gsub("^%s+", ""):gsub("%s+$", "")
|
return s:gsub("^%s+", ""):gsub("%s+$", "")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue