Description
As a fix for -- rudimentary escape syntax was added. Though it isn't correct.SLF4J-52
Now MessageFormatter.arrayFormat() checks only for 2 cases: escaped curly brace ("\{" - put raw "{" into log output) and double escaped curly brace ("\\{" - put raw "\" into log output and use "{" as parameter start).
But this is incomplete. There may be any number of backslashes:
- Triple escaped: "\\\{" - put "\" and "{" into log output, no parameter start
- Quadruple escaped: "\\\\{" - put "\" and "\" into log output, use "{" as parameter start
- Pentaple escaped: "\\\\\{" - put "\", "\" and "{" into log output, no parameter start
- And so on
So even if only check slash escaping before opening curly brace, you must check number of slashes. If the number is odd, curly brace is escaped, if number is even, only backslashes are escaped but not the curly brace.