Module:Category handler/shared

ta>Mr. Stradivarius பயனரால் செய்யப்பட்ட 01:51, 7 சூலை 2014 அன்றிருந்தவாரான திருத்தம் (allow specifying a custom blacklist)

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://tamilar.wiki/w/index.php?title=Module:Category_handler/shared&oldid=82713" இலிருந்து மீள்விக்கப்பட்டது