Jump to content

Module:Deranize: Difference between revisions

m
add clean function
(rest of the owl)
m (add clean function)
Line 135: Line 135:
end
end


return {deranize = deranize}
function clean(frame)
  assert(frame.args[1] ~= nil and frame.args[2] == nil, "This function requires exactly one argument")
  return u.gsub(frame.args[1], "[%[%]*]", "")
end
 
return {deranize = deranize, clean = clean}