aboutsummaryrefslogtreecommitdiffstats
path: root/util/hex.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-09-03 00:37:41 +0200
committerKim Alvefur <zash@zash.se>2014-09-03 00:37:41 +0200
commit11af743ec1ac3de3264c6f6aa5e71a6544b3f91c (patch)
treeac33240ab14ecbda007088eba8b15c17282be153 /util/hex.lua
parentc80b30a71ceb555bb33d14c3c7dbee0a8c93eaee (diff)
downloadprosody-11af743ec1ac3de3264c6f6aa5e71a6544b3f91c.tar.gz
prosody-11af743ec1ac3de3264c6f6aa5e71a6544b3f91c.zip
util.hex: Use locals!
Diffstat (limited to 'util/hex.lua')
-rw-r--r--util/hex.lua4
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