Mercurial
>
lxmppd-hg-xmllex
/ annotate
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
latest
revisions
annotate
diff
comparison
raw
util/jid.lua@3e3171b59028 (annotated)
util/jid.lua
Fri, 22 Aug 2008 21:09:04 +0000
author
matthew
date
Fri, 22 Aug 2008 21:09:04 +0000
changeset 0
3e3171b59028
child 27
859b316e2fb0
permissions
-rw-r--r--
First commit, where do you want to go tomorrow?
0
3e3171b59028
First commit, where do you want to go tomorrow?
matthew
parents:
diff
changeset
1
3e3171b59028
First commit, where do you want to go tomorrow?
matthew
parents:
diff
changeset
2
local match = string.match;
3e3171b59028
First commit, where do you want to go tomorrow?
matthew
parents:
diff
changeset
3
3e3171b59028
First commit, where do you want to go tomorrow?
matthew
parents:
diff
changeset
4
module "jid"
3e3171b59028
First commit, where do you want to go tomorrow?
matthew
parents:
diff
changeset
5
3e3171b59028
First commit, where do you want to go tomorrow?
matthew
parents:
diff
changeset
6
function split(jid)
3e3171b59028
First commit, where do you want to go tomorrow?
matthew
parents:
diff
changeset
7
return match(jid, "^([^@]+)@([^/]+)/?(.*)$");
3e3171b59028
First commit, where do you want to go tomorrow?
matthew
parents:
diff
changeset
8
end