function t.match(w)assert(t.string(w))return function(r)local e=t.string(r)if not e then return false end if string.match(r,w)==nil then return false end return true end end

function t.match(pattern)
	assert(t.string(pattern))
	return function(value)
		local stringSuccess = t.string(value)
		if not stringSuccess then
			return false
		end

		if string.match(value, pattern) == nil then
			return false
		end

		return true
	end
end
