hardhat-vscode icon indicating copy to clipboard operation
hardhat-vscode copied to clipboard

Escape character with \ in string not works

Open Xeonacid opened this issue 1 year ago • 1 comments
trafficstars

Minimal Reproducible Example:

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

image

Xeonacid avatar Mar 22 '24 08:03 Xeonacid

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 avatar Mar 26 '24 17:03 kanej