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

Escape character with \ in string not works #549

Open
Xeonacid opened this issue Mar 22, 2024 · 1 comment
Open

Escape character with \ in string not works #549

Xeonacid opened this issue Mar 22, 2024 · 1 comment
Labels
status:ready This issue is ready to be worked on type:bug Something isn't working

Comments

@Xeonacid
Copy link

Minimal Reproducible Example:

contract Test {
    function f(string memory s) pure returns (string memory) {
        return string.concat("\"", string.concat(s, "\""));
    }
}

image

@kanej
Copy link
Member

kanej commented Mar 26, 2024

I have been able to reproduce this locally. This is a bug.

It might be getting disguised by prettier cleaning up "\"" to '"' on format.

@kanej kanej added status:ready This issue is ready to be worked on type:bug Something isn't working and removed status:triaging labels Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on type:bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants