diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-03 04:24:13 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-03 04:24:13 +0200 |
commit | f179b18e2bcf524d31cfc547b4b17e7013270c5f (patch) | |
tree | 9164b9936937053754d2448b2400c1d3f8c15cc7 /util | |
parent | 943b7419b875d405fa1edf47d21d76108c2fe1aa (diff) | |
download | prosody-f179b18e2bcf524d31cfc547b4b17e7013270c5f.tar.gz prosody-f179b18e2bcf524d31cfc547b4b17e7013270c5f.zip |
util.format: Fix missing backslash in pattern
Made the pattern match a longer range than intended, but with no effect
since those characters are not present in the 'control_symbols' table.
Diffstat (limited to 'util')
-rw-r--r-- | util/format.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/format.lua b/util/format.lua index 72f909b8..52388081 100644 --- a/util/format.lua +++ b/util/format.lua @@ -60,7 +60,7 @@ local function format(formatstring, ...) args[i] = dump(arg); spec = "%s"; elseif option == "s" then - args[i] = tostring(arg):gsub("[%z\1-31\127]", control_symbols); + args[i] = tostring(arg):gsub("[%z\1-\31\127]", control_symbols); elseif type(arg) ~= "number" then -- arg isn't number as expected? args[i] = tostring(arg); spec = "[%s]"; |