util/jid.lua
changeset 5 57e4eb3aeac0
child 27 859b316e2fb0
equal deleted inserted replaced
-1:000000000000 5:57e4eb3aeac0
       
     1 
       
     2 local match = string.match;
       
     3 
       
     4 module "jid"
       
     5 
       
     6 function split(jid)
       
     7 	return match(jid, "^([^@]+)@([^/]+)/?(.*)$");
       
     8 end