Module:MF2

From Fire Emblem Heroes Wiki
Jump to: navigation, search
Documentation for this module may be created at Module:MF2/doc
local removeAccentTable = mw.loadData('Module:MF/data').accents

local main1 = function (str)
	return (mw.ustring.gsub(mw.ustring.gsub(mw.text.decode(str == nil and '' or tostring(str)), "%a", removeAccentTable), "[^A-Za-z0-9 ._-]", ""))
end

return {
	main1 = main1,
	_main = function (args) return main1(args[1]) end,
	main = function (frame) return main1(frame.args[1]) end,
}