diff options
author | Kim Alvefur <zash@zash.se> | 2014-09-03 03:35:48 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-09-03 03:35:48 +0200 |
commit | fabf45ed3085ca142f0ca786967e0f3d86b8b2df (patch) | |
tree | eb16a84bc3a9041200e866318d17edf87c1af0ae /util/hex.lua | |
parent | d21a5e46225b9b62b78cd7eeee1ed6869ef9efa0 (diff) | |
parent | 2781a9aa2528fd7a21d4b07c553f7cab3377e4d9 (diff) | |
download | prosody-fabf45ed3085ca142f0ca786967e0f3d86b8b2df.tar.gz prosody-fabf45ed3085ca142f0ca786967e0f3d86b8b2df.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/hex.lua')
-rw-r--r-- | util/hex.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/hex.lua b/util/hex.lua index 72fc22bd..b21ee17e 100644 --- a/util/hex.lua +++ b/util/hex.lua @@ -8,11 +8,11 @@ local function hex_to_char(h) return s_char(tonumber(h, 16)); end -function to(s) +local function to(s) return s:gsub(".", char_to_hex); end -function from(s) +local function from(s) return s:gsub("..", hex_to_char); end |