Content deleted Content added
clean whitespace; remove unused CS1 hyphen2dash; minor tweak |
ttweak findpagetext per talk so it won't fail if given an invalid or nonexistent page title; remove comment about multiple values which doesn't apply in an expression |
||
Line 189:
if plain:sub(1, 1) == "f" then plain = false else plain = true end
-- get the page content and look for 'text' - return position or nomatch
local content = titleobj and titleobj:getContent()
return content and mw.ustring.find(content, text, 1, plain) or nomatch
end
p.findpagetext = function(frame)
|