aboutsummaryrefslogtreecommitdiffstats
path: root/util/jid.lua
blob: 9d01e2afa4966f2b2676fda15415f06b678b268d (plain)
1
2
3
4
5
6
7
8

local match = string.match;

module "jid"

function split(jid)
	return match(jid, "^([^@]+)@([^/]+)/?(.*)$");
end