Module:Utils: Difference between revisions

Sintel (talk | contribs)
merge changes from dev
+nonempty string check function
Line 20: Line 20:
end
end
return nil
return nil
end
-- check whether the input is a non-empty string
function p.value_provided(s)
return type(s) == "string" and #s > 0
end
end