diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-20 12:06:36 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-20 12:06:36 +0100 |
commit | f36fed39e8110ee3c36e0587811ce3268ae6690e (patch) | |
tree | 42de9d6d395a5d6593061d50ad81fffa8323a41b /util/datamanager.lua | |
parent | f0bd3ec40322b46444b6d944fce24e5beaaf0bf4 (diff) | |
download | prosody-f36fed39e8110ee3c36e0587811ce3268ae6690e.tar.gz prosody-f36fed39e8110ee3c36e0587811ce3268ae6690e.zip |
util.datamanager: Shorter pattern
Diffstat (limited to 'util/datamanager.lua')
-rw-r--r-- | util/datamanager.lua | 2 |
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) |