Module:HiddenUnicode

From Northumberland Climbing
Jump to navigation Jump to search

Documentation for this module may be created at Module:HiddenUnicode/doc

local i = {}
 
function i.HiddenUnicode(frame)
    local txt = frame.args[1] or '';
    local catUnicodeIssue = '';
    -- Note the quote ("") below is not empty and actually contains a hidden unicode character.
    if mw.ustring.match(txt,"‎") ~= nil then
        catUnicodeIssue = '[[' .. 'Category:Listing with hidden unicode character]]'
    end
    return catUnicodeIssue;
end
 
return i;