# HG changeset patch # User Kim Alvefur # Date 1625279053 -7200 # Node ID b6ea0148ad37a23f388719bf8ac4893f8b886235 # Parent 3be346c5b940bf874700ef72dcf3969bc757c10a 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. diff -r 3be346c5b940 -r b6ea0148ad37 util/format.lua --- a/util/format.lua Sat Jul 03 03:24:26 2021 +0200 +++ b/util/format.lua Sat Jul 03 04:24:13 2021 +0200 @@ -60,7 +60,7 @@ 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]";