2,875
edits
No edit summary |
No edit summary |
||
Line 461: | Line 461: | ||
function p._replace(str, searchTerm, replacementTerm) | function p._replace(str, searchTerm, replacementTerm) | ||
if str == nil then | if str == nil then | ||
return | return str | ||
end | end | ||
Line 472: | Line 472: | ||
function p.replace(frame) | function p.replace(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
error(args[1]) | |||
return p._replace( | return p._replace( | ||
args[1], | args[1], |
edits