fix: handle escaped closing brace in template placeholder parsing by roeniss · Pull Request #813 · apache/fesod
When a template placeholder contains an escaped closing brace like {foo\},
the parser would throw StringIndexOutOfBoundsException because it attempted
to use suffixIndex=-1 in a substring operation.
Added a bounds check after the inner while loop to break out when no valid
(non-escaped) closing brace is found.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters