Module:Redirect/sandbox: Difference between revisions

Content deleted Content added
m finally see it. * outside ) in capture. Arrgh.
m cleanup debug stuff
Line 104:
local originalText = text -- I don't want to even think about conflicts...
local nextLink = mw.ustring.gmatch(originalText, "%[%[([^%]|]*)|?([^%]]-)%]%]") -- k. o. w.
local link = " " -- true
local display = "" -- false
debuglog = ""
while link do
debuglog = debuglog .. "it"
if not(start) and link ~= " " then
-- handle redirecting this link
debuglog = debuglog .. tostring(link)
end
 
link, display = nextLink()
debuglog = debuglog .. tostring(link) .. tostring(display)
 
if start then
Line 126 ⟶ 122:
end
end
return debuglogtext
end