aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-11-20 12:06:36 +0100
committerKim Alvefur <zash@zash.se>2016-11-20 12:06:36 +0100
commitf36fed39e8110ee3c36e0587811ce3268ae6690e (patch)
tree42de9d6d395a5d6593061d50ad81fffa8323a41b /util
parentf0bd3ec40322b46444b6d944fce24e5beaaf0bf4 (diff)
downloadprosody-f36fed39e8110ee3c36e0587811ce3268ae6690e.tar.gz
prosody-f36fed39e8110ee3c36e0587811ce3268ae6690e.zip
util.datamanager: Shorter pattern
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/datamanager.lua b/util/datamanager.lua
index ddc71899..585bb83d 100644
--- a/util/datamanager.lua
+++ b/util/datamanager.lua
@@ -53,7 +53,7 @@ do
local urlcodes = setmetatable({}, { __index = function (t, k) t[k] = char(tonumber(k, 16)); return t[k]; end });
decode = function (s)
- return s and (s:gsub("%%([a-fA-F0-9][a-fA-F0-9])", urlcodes));
+ return s and (s:gsub("%%(%x%x)", urlcodes));
end
encode = function (s)