568
edits
(rest of the owl) |
m (clean :s) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 62: | Line 62: | ||
local derani_punctuation = { | local derani_punctuation = { | ||
["\""] = "", | ["\""] = "", | ||
[":"] = "", | |||
[","] = " ", | [","] = " ", | ||
["."] = " ", | ["."] = " ", | ||
Line 135: | Line 136: | ||
end | end | ||
return {deranize = deranize} | function clean(frame) | ||
assert(frame.args[1] ~= nil and frame.args[2] == nil, "This function requires exactly one argument") | |||
local cleaned = u.gsub(frame.args[1], "[:%[%]*]", "") | |||
return cleaned | |||
end | |||
return {deranize = deranize, clean = clean} |