--- Splits a string by a single delimeter chosen from the given set.
-- The first matching delimeter from the set becomes the split character.

function Util.SplitPrioritizedDelimeter(text, delimeters)
	for i, delimeter in ipairs(delimeters) do
		if text:find(delimeter) or i == #delimeters then
			return Util.SplitStringSimple(text, delimeter)
		end
	end
end
