qcz / vscode-text-power-tools

Text Power Tools extension for VS Code
https://marketplace.visualstudio.com/items?itemName=qcz.text-power-tools
MIT License
97 stars 14 forks source link

[Bug] "Escape text for JSON" cuts of the last character #63

Closed jwikman closed 1 year ago

jwikman commented 1 year ago

In v1.40.0, the "Escape text for JSON" feature started to cut of the last character of the string being converted.

I just ran the function on a "asfd" string, and it gets shorter and shorter for every execution. :)

qcz commented 1 year ago

Thanks for the issue. Fixed in 1.40.1.

jwikman commented 1 year ago

Thanks @qcz, now it seems to work as expected again. 👍