util/jid.lua

Sun, 24 Aug 2008 18:01:20 +0100

author
matthew@silver
date
Sun, 24 Aug 2008 18:01:20 +0100
changeset 5
57e4eb3aeac0
child 27
859b316e2fb0
permissions
-rw-r--r--

Added all the files to please hg :/

5
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
1
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
2 local match = string.match;
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
3
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
4 module "jid"
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
5
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
6 function split(jid)
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
7 return match(jid, "^([^@]+)@([^/]+)/?(.*)$");
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
8 end

mercurial