Closed alekseyg closed 4 months ago
After playing around with it a little more it appears that it only mangles the first one. Here's an example with multiple curly braces.
Default in schema:
"You made a %{amount} donation on %{date} to %{beneficiary}%{via}."
Mangled value inserted:
"You made a %{amount\ donation on %{date} to %{beneficiary}%{via}.}"
I can reproduce the issue. It looks like an issue upstream in codemirror.
@alekseyg can you let us know if upgrading your @codemirror/autocomplete
version and upgrading to the latest release of our library resolve this issue?
@acao Yes! That fixed it. Thank you!
It appears that the default gets mangled when it contains curly braces. For example, I have this schema:
But when I type out the key for
message.heading
and the default gets populated, it looks like this:A backslash is inserted where the closing curly bracket should be and the curly bracket moves to the end of the string. It's also invalid JSON. I have more values like this with and without emoji, and the result is the same.