Software /
code /
prosody
Comparison
util/jid.lua @ 8555:4f0f5b49bb03
vairious: Add annotation when an empty environment is set [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 28 Feb 2018 20:06:26 +0100 |
parent | 7670:2be85cb3bc66 |
child | 9324:607b262da853 |
comparison
equal
deleted
inserted
replaced
8554:12a68e0d0ecf | 8555:4f0f5b49bb03 |
---|---|
23 }; | 23 }; |
24 local unescapes = {}; | 24 local unescapes = {}; |
25 for k,v in pairs(escapes) do unescapes[v] = k; end | 25 for k,v in pairs(escapes) do unescapes[v] = k; end |
26 | 26 |
27 local _ENV = nil; | 27 local _ENV = nil; |
28 -- luacheck: std none | |
28 | 29 |
29 local function split(jid) | 30 local function split(jid) |
30 if not jid then return; end | 31 if not jid then return; end |
31 local node, nodepos = match(jid, "^([^@/]+)@()"); | 32 local node, nodepos = match(jid, "^([^@/]+)@()"); |
32 local host, hostpos = match(jid, "^([^@/]+)()", nodepos) | 33 local host, hostpos = match(jid, "^([^@/]+)()", nodepos) |