Fix an error with trim on the xm handler.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user