util/hex.lua
changeset 12359 a0ff5c438e9d
parent 6805 442019e955dc
--- a/util/hex.lua	Fri Mar 04 15:03:02 2022 +0000
+++ b/util/hex.lua	Fri Mar 04 15:22:45 2022 +0000
@@ -23,4 +23,8 @@
 	return (s_gsub(s_lower(s), "%X*(%x%x)%X*", hex_to_char));
 end
 
-return { to = to, from = from }
+return {
+	encode = to, decode = from;
+	-- COMPAT w/pre-0.12:
+	to = to, from = from;
+};