Software /
code /
prosody
Comparison
util/jid.lua @ 0:3e3171b59028
First commit, where do you want to go tomorrow?
author | matthew |
---|---|
date | Fri, 22 Aug 2008 21:09:04 +0000 |
child | 27:859b316e2fb0 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3e3171b59028 |
---|---|
1 | |
2 local match = string.match; | |
3 | |
4 module "jid" | |
5 | |
6 function split(jid) | |
7 return match(jid, "^([^@]+)@([^/]+)/?(.*)$"); | |
8 end |