Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect escaping in strings #879

Closed
StrekoZ opened this issue Jul 18, 2024 · 2 comments · Fixed by #930
Closed

Incorrect escaping in strings #879

StrekoZ opened this issue Jul 18, 2024 · 2 comments · Fixed by #930
Assignees

Comments

@StrekoZ
Copy link

StrekoZ commented Jul 18, 2024

Describe the bug
Incorrect escping of backslash

To Reproduce

  1. Open playground: https://camunda.github.io/feel-scala/docs/playground/
  2. Use expression x = "\\"
  3. Use context { "x": "\\" }

Observed behavior
image

Expected behavior
Output should be true

Notes
If expression is x, then in output there is string with 2 slashes instead of one
If expression is "\\" then currently output is string with 4 slashes, which is very srange

Environment

  • FEEL engine version: [1.17]
@StrekoZ
Copy link
Author

StrekoZ commented Jul 18, 2024

Similar problem described at: #778 (slightly different use case, but also related to backslash and escaping)

@saig0
Copy link
Member

saig0 commented Aug 12, 2024

@StrekoZ thank you for reporting. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants