Módulo:Category handler/shared

De Familia Sanchez Arjona
< Módulo:Category handler
Revisión del 15:13 7 jul 2014 de Mr. Stradivarius (Discusión) (make this output either true or false, and switch indentation to tabs)

Saltar a: navegación, buscar

La documentación para este módulo puede ser creada en Módulo:Category handler/shared/doc

-- This module contains shared functions used by [[Module:Category handler]]
-- and its submodules.

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

return {
	matchesBlacklist = matchesBlacklist
}