Module:validate IPA

local export = {}

local badchars = { [0x02A6] = true }

function export.validate(frame) local args = frame:getParent.args local IPA = args[1] if contains_invalid_char(IPA) == false then return "" end end function contains_invalid_char(str) for c in mw.ustring.gcodepoint(str) do       if badchars[c] ~= nil then return false end end return true end

return export