Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(Cleaning up module, and adding episode)
No edit summary
Line 8: Line 8:


-- Standardized "has content" function
-- Standardized "has content" function
function param.has_content(arg, default)
function param.has_content(arg)
-- Return arg if any non-whitespace character is found
-- Return arg if any non-whitespace character is found
return string.match(arg or '', '%S') and arg or nil
return string.match(arg or '', '%S') and arg or nil