Module:Delink: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(delink urls)
(better prefix test)
Line 11: Line 11:
local url_prefix
local url_prefix
for i,v in ipairs(valid_url_prefixes) do
for i,v in ipairs(valid_url_prefixes) do
if mw.ustring.match(s, '^%[' .. v ..'[^" ]' ) then
if mw.ustring.match(s, '^%[' .. v ..'[^" ].*%]' ) then
url_prefix = v
url_prefix = v
break
break