aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamanager.lua
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
commit58a712e247dbaede24c3297260bae145e0ede16e (patch)
tree42de9d6d395a5d6593061d50ad81fffa8323a41b /util/datamanager.lua
parentb0adfce172e216dfe0a8767f598e80b0493a118c (diff)
downloadprosody-58a712e247dbaede24c3297260bae145e0ede16e.tar.gz
prosody-58a712e247dbaede24c3297260bae145e0ede16e.zip
util.datamanager: Shorter pattern
Diffstat (limited to 'util/datamanager.lua')
-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)