Content deleted Content added
update from sandbox - merge in strip function from module:stringfunc |
catch nil parameter when passed and gracefully return an empty string rather than an error message |
||
Line 2:
p.trim = function(frame)
local s = mw.text.trim(frame.args[1] or "")
return s
end
|