small code tweak in format
This commit is contained in:
parent
e875828aa9
commit
4c49583fed
|
@ -229,7 +229,7 @@ String format(StringView fmt, ArrayView<const StringView> params)
|
||||||
if (opening == end)
|
if (opening == end)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (opening != it && res.back() == '\\')
|
if (opening != it && *(opening-1) == '\\')
|
||||||
{
|
{
|
||||||
res.back() = '{';
|
res.back() = '{';
|
||||||
it = opening + 1;
|
it = opening + 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user