Module:Delink: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(fix bad pattern)
(check for characters that are allowed in titles but not in link title areas)
Line 74: Line 74:
if not mw.title.makeTitle("", titlearea) then
if not mw.title.makeTitle("", titlearea) then
return s -- If it's not a valid link, return the whole string.
return s -- If it's not a valid link, return the whole string.
end
local other_invalid_link_strings = { '�' }
for i,v in ipairs(other_invalid_link_strings) do
if mw.ustring.match(titlearea, v) then
return s
end
end
end