உள்ளடக்கத்துக்குச் செல்

Module:Category handler/shared

கட்டற்ற கலைக்களஞ்சியமான விக்கிப்பீடியாவில் இருந்து.

Documentation for this module may be created at Module:Category handler/shared/doc

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

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

return {
	matchesBlacklist = matchesBlacklist
}
"https://ta.wikipedia.org/w/index.php?title=Module:Category_handler/shared&oldid=2000176" இலிருந்து மீள்விக்கப்பட்டது