Mercurial > prosody-hg
diff util/hex.lua @ 12355:a0ff5c438e9d
util.hex: Deprecate to/from in favour of encode/decode, for consistency!
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 04 Mar 2022 15:22:45 +0000 |
| parents | 442019e955dc |
| children |
line wrap: on
line diff
--- 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; +};
