From d0a4f8f2fb4b0927a67ebc7428d6c5cb66d2fbd4 Mon Sep 17 00:00:00 2001 From: matthew Date: Fri, 22 Aug 2008 21:09:04 +0000 Subject: First commit, where do you want to go tomorrow? --- util/jid.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 util/jid.lua (limited to 'util/jid.lua') diff --git a/util/jid.lua b/util/jid.lua new file mode 100644 index 00000000..9d01e2af --- /dev/null +++ b/util/jid.lua @@ -0,0 +1,8 @@ + +local match = string.match; + +module "jid" + +function split(jid) + return match(jid, "^([^@]+)@([^/]+)/?(.*)$"); +end -- cgit v1.2.3