Jump to content

Module:Check for unknown parameters

ⵙⴳ ⵡⵉⴽⵉⴱⵉⴷⵢⴰ
-- This module may be used to compare the arguments passed to the parent
-- with a list of arguments, returning a specified result if an argument is
-- not on the list
local p = {}

local function isnotempty(s)
	return s and s:match( '^%s*(.-)%s*$' ) ~= ''
end