teal-src/util/jid.d.tl
author Kim Alvefur <zash@zash.se>
Sun, 05 Sep 2021 18:42:44 +0200
changeset 11773 071715a18394
parent 11436 113f3912c7cb
permissions -rw-r--r--
mod_pubsub: Move reversal of item order in <items> Examples in XEP-0060 suggest that items should be listed in chronological order, but we get them from the archive in reverse order. However when requesting specific items by id the results keep that order and we don't want to flip it again. At some point it would likely be best to use the archive API directly instead of this util.cache-compatible wrapper.

local record lib
	split : function (string) : string, string, string
	bare : function (string) : string
	prepped_split : function (string, boolean) : string, string, string
	join : function (string, string, string) : string
	prep : function (string, boolean) : string
	compare : function (string, string) : boolean
	node : function (string) : string
	host : function (string) : string
	resource : function (string) : string
	escape : function (string) : string
	unescape : function (string) : string
end

return lib