Comparison

util/jid.lua @ 12605:053417068957

doap: Update XEP versions for which no code changes appear needed XEP-0004: Partial forms are handled XEP-0045: We're already strict with GC 1.0 XEP-0060: Change in semantics wrt 'pubsub#type', but not in code XEP-0115: No protocol change XEP-0138: Specification moved to Obsolete XEP-0163: Editorial only change XEP-0215: Minor schema change XEP-0280: Editorial change XEP-0297: Had the wrong version number XEP-0106: Note missing piece for version 1.1 XEP-0313: Editorial change XEP-0363: Editorial clarification, no code change required XEP-0380: Registry additions, no code change needed XEP-0384: Not directly supported, only here because people will ask otherwise XEP-0445: Broken out of XEP-0401
author Kim Alvefur <zash@zash.se>
date Mon, 08 Aug 2022 20:33:44 +0200
parent 12190:3616128cd2e3
child 12768:6e3aa3995eab
comparison
equal deleted inserted replaced
12604:bd9e006a7a74 12605:053417068957
109 109
110 local function resource(jid) 110 local function resource(jid)
111 return (select(3, split(jid))); 111 return (select(3, split(jid)));
112 end 112 end
113 113
114 -- TODO Forbid \20 at start and end of escaped output per XEP-0106 v1.1
114 local function escape(s) return s and (s:gsub("\\%x%x", backslash_escapes):gsub("[\"&'/:<>@ ]", escapes)); end 115 local function escape(s) return s and (s:gsub("\\%x%x", backslash_escapes):gsub("[\"&'/:<>@ ]", escapes)); end
115 local function unescape(s) return s and (s:gsub("\\%x%x", unescapes)); end 116 local function unescape(s) return s and (s:gsub("\\%x%x", unescapes)); end
116 117
117 return { 118 return {
118 split = split; 119 split = split;