1
2 local match = string.match;
3
4 module "jid"
5
6 function split(jid)
7 return match(jid, "^([^@]+)@([^/]+)/?(.*)$");
8 end