Fall Guys: Ultimate Knockout Wiki
Advertisement

require('Module:No globals')
local checkType = require('libraryUtil').checkType
--local inspect = require('Module:Inspect').inspect

local p = {}

function p.parse(value)
	checkType('parse', 1, value, 'string', false)
	local color = mw.ustring.match(mw.ustring.lower(mw.text.trim(value)), '^#%x%x%x%x%x%x$')
	local success = type(color) == "string"
	return {
		success = success,
		value = value,
		color = color,
	}
end

return p
Advertisement