8,438
edits
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
local p = {} | local p = {} | ||
function trim(s) -- Allows removing of whitespace from inputs; adapted from (https://www.lua.org/manual/2.4/node32.html) | function trim(s) -- Allows removing of whitespace and line breaks from inputs; adapted from (https://www.lua.org/manual/2.4/node32.html) | ||
local l = 1 | local l = 1 | ||
while string.sub(s,l,l) == ' ' do | while string.sub(s,l,l) == ' ' do |