X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=util%2Fjid.lua;h=069817c6167c46d0fffbe2a4e98bb71f604474b2;hb=a689938fa45323f67433bcd5554affd3f4b0fc52;hp=9128ce4e0a73c8f219331da5114d34539b12f5fd;hpb=6a1e0c1cd639a4d76eb40a4f2deaa6396b34d8b0;p=prosody.git diff --git a/util/jid.lua b/util/jid.lua index 9128ce4e..069817c6 100644 --- a/util/jid.lua +++ b/util/jid.lua @@ -17,7 +17,7 @@ module "jid" local function _split(jid) if not jid then return; end - local node, nodepos = match(jid, "^([^@]+)@()"); + local node, nodepos = match(jid, "^([^@/]+)@()"); local host, hostpos = match(jid, "^([^@/]+)()", nodepos) if node and not host then return nil, nil, nil; end local resource = match(jid, "^/(.+)$", hostpos);