diff options
Diffstat (limited to 'util/jid.lua')
-rw-r--r-- | util/jid.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/jid.lua b/util/jid.lua index f402b7f4..ec31f180 100644 --- a/util/jid.lua +++ b/util/jid.lua @@ -25,11 +25,12 @@ local unescapes = {}; for k,v in pairs(escapes) do unescapes[v] = k; end local _ENV = nil; +-- luacheck: std none local function split(jid) if not jid then return; end local node, nodepos = match(jid, "^([^@/]+)@()"); - local host, hostpos = match(jid, "^([^@/]+)()", nodepos) + local host, hostpos = match(jid, "^([^@/]+)()", nodepos); if node and not host then return nil, nil, nil; end local resource = match(jid, "^/(.+)$", hostpos); if (not host) or ((not resource) and #jid >= hostpos) then return nil, nil, nil; end |