Describe the bug
If a string literal contains a newline character \n, the newline is escaped and returned as \\n.
"Hello\nWorld"
// "Hello\\nWorld"
The behavior is different if the newline character is stored in a string variable and the variable is referenced in the expression. In this case, the newline is not escaped.
x
// "Hello\nWorld"
To Reproduce
Steps to reproduce the behavior:
Evaluate the expression "Hello\nWorld"
Verify that the newline character is escaped
Expected behavior
A newline character in a string literal is not escaped. The string is returned in its original form.
Describe the bug If a string literal contains a newline character
\n
, the newline is escaped and returned as\\n
.The behavior is different if the newline character is stored in a string variable and the variable is referenced in the expression. In this case, the newline is not escaped.
To Reproduce Steps to reproduce the behavior:
"Hello\nWorld"
Expected behavior A newline character in a string literal is not escaped. The string is returned in its original form.
Environment
1.15.0+
8.0.2+
: https://github.com/camunda/zeebe/issues/9859