Module:MultiReplace: Difference between revisions

Content deleted Content added
rm Superfluous input sanitization
Better readable p.main
Line 47:
function p.main(frame)
local args
if type(frame.args) =~= 'table' then
if frame.args[1] then
args = frame.args
else
args = frame:getParent().args
end
else
args = frame
if elseif frame.args[1] then
args = frame.args
else
args = frame:getParent().args
end
return MultiReplace(args)