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

Decompiler fails to unescape {{ in format() function calls #2335

Closed
majastrz opened this issue Apr 20, 2021 · 1 comment · Fixed by #5887
Closed

Decompiler fails to unescape {{ in format() function calls #2335

majastrz opened this issue Apr 20, 2021 · 1 comment · Fixed by #5887
Labels
bug Something isn't working story: decompiler

Comments

@majastrz
Copy link
Member

Bicep version
v0.3.255

Describe the bug
Decompiler fails to unescape {{ in format() function calls

To Reproduce
Assume the following:
image

Decompilation produces this in Bicep:
image

Compiling the decompiled Bicep produces the following (2 curlies become 4):
image

@ghost ghost added the Needs: Triage 🔍 label Apr 20, 2021
@majastrz
Copy link
Member Author

Ideally the fix should be to unescape the {{ when converting the format() call into a string interpolation expression. However, if that has complications, we can always skip converting into a string interpolation if {{ is detected.

@alex-frankel alex-frankel added bug Something isn't working story: decompiler and removed Needs: Triage 🔍 labels Apr 29, 2021
@alex-frankel alex-frankel added this to the Committed Backlog milestone Apr 29, 2021
@ghost ghost locked as resolved and limited conversation to collaborators May 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working story: decompiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants