util/jid.lua
changeset 12609 053417068957
parent 12194 3616128cd2e3
child 12772 6e3aa3995eab
--- a/util/jid.lua	Fri Aug 05 16:54:15 2022 +0200
+++ b/util/jid.lua	Mon Aug 08 20:33:44 2022 +0200
@@ -111,6 +111,7 @@
 	return (select(3, split(jid)));
 end
 
+-- TODO Forbid \20 at start and end of escaped output per XEP-0106 v1.1
 local function escape(s) return s and (s:gsub("\\%x%x", backslash_escapes):gsub("[\"&'/:<>@ ]", escapes)); end
 local function unescape(s) return s and (s:gsub("\\%x%x", unescapes)); end