Modul:Category handler/shared: Unterschied zwischen den Versionen

make this output either true or false, and switch indentation to tabs
(allow specifying a custom blacklist)
(make this output either true or false, and switch indentation to tabs)
Zeile 3: Zeile 3:


local function matchesBlacklist(page, blacklist)
local function matchesBlacklist(page, blacklist)
    if type(page) ~= 'string' then
for i, pattern in ipairs(blacklist) do
    return nil
local match = mw.ustring.match(page, pattern)
    end
if match then
    for i, pattern in ipairs(blacklist) do
return true
        local match = mw.ustring.match(page, pattern)
end
        if match then
end
            return match
return false
        end
    end
end
end


Anonymer Benutzer