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 | 58a712e247dbaede24c3297260bae145e0ede16e (patch) | |
tree | 42de9d6d395a5d6593061d50ad81fffa8323a41b | |
parent | b0adfce172e216dfe0a8767f598e80b0493a118c (diff) | |
download | prosody-58a712e247dbaede24c3297260bae145e0ede16e.tar.gz prosody-58a712e247dbaede24c3297260bae145e0ede16e.zip |
util.datamanager: Shorter pattern
-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) |