NomicFoundation/hardhat-vscode

Escape character with \ in string not works

Xeonacid opened this issue · 1 comments

Minimal Reproducible Example:

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

image

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

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