end
--- Returns the Haserl unique sessionid
-function sessionid()
- return ENV.SESSIONID
-end
-
-
-- Splits a string into an array
function split(str, pat, max, regex)
pat = pat or "\n"
end
-- Removes whitespace from beginning and end of a string
-function trim(string)
- local s = string:gsub("^%s*(.-)%s*$", "%1")
+function trim(str)
+ local s = str:gsub("^%s*(.-)%s*$", "%1")
return s
end