fix: handle escaped closing brace in template placeholder parsing by roeniss · Pull Request #813 · apache/fesod

@roeniss

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.

@psxjoy

@alaahong