Module:String2/sandbox: Difference between revisions

Content deleted Content added
no need to escape { }
look for list markup
Line 13:
p.sentence = function (frame )
local s = mw.text.trim( frame.args[1] or "" )
if string.find(s, "^{{[^%}]+}}<li>") then
return s .. " >> templatedlist"
end
if string.find(s, "^%[%[[^|]+|[^%]]+%]%]") then