yoavbls / pretty-ts-errors

🔵 Make TypeScript errors prettier and human-readable in VSCode 🎀
https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors
MIT License
13.29k stars 89 forks source link

fix: special characters in object literals #17

Closed costamatheus97 closed 1 year ago

costamatheus97 commented 1 year ago

Fixes #13

Please let me know if there is any guidelines to follow for contribution @yoavbls

yoavbls commented 1 year ago

Thank you for opening to fixing this issue and also added a test 😍 I'll take a deep look later today to make sure it isn't causing some other random errors to break thanks!

costamatheus97 commented 1 year ago

Done! indeed there was an issue with the regex you mentioned, could fix with the solution you've provided. Had to change the last regex also, by using a negative lookahead to prevent it from adding a code block inside the type error.

Let me know if there is any persisting issues @yoavbls