mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
util.hex: Deprecate to/from in favour of encode/decode, for consistency!
This commit is contained in:
parent
fe56effa55
commit
ab835fed13
8 changed files with 31 additions and 27 deletions
|
@ -23,4 +23,8 @@ local function from(s)
|
|||
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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue