Μετάβαση στο περιεχόμενο

Module:Category handler/shared

Από τη Βικιπαίδεια, την ελεύθερη εγκυκλοπαίδεια
Αυτή είναι μια παλιά έκδοση της σελίδας, όπως διαμορφώθηκε από τον Mr. Stradivarius (συζήτηση | συνεισφορές) στις 13:13, 7 Ιουλίου 2014 (make this output either true or false, and switch indentation to tabs). Η τρέχουσα διεύθυνση (URL) είναι μόνιμος σύνδεσμος προς αυτή την έκδοση, που μπορεί να διαφέρει σημαντικά από την τρέχουσα έκδοση.
-- 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
}