codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.92k stars 362 forks source link

Adding the backtick character in javascript code breaks codemaid cleanup #1027

Open craiggeil opened 11 months ago

craiggeil commented 11 months ago

Environment

Description

Adding the backtick (`) character in javascript code breaks codemaid cleanup

Steps to recreate

Current behavior

Cleanup fails

Expected behavior

Should not break cleanup

codecadwallader commented 11 months ago

Thanks for reporting the issue. I have not been able to reproduce it. Can you please provide a minimal solution or code sample that exhibits the issue?

craiggeil commented 11 months ago

Create a file called test.vue and add this code:

*.vue files always work with CodeMaid. For some reason this time it fails. I don't use any other formatter for any files. I'm using Visual Studio 2022 Community. Take out the acFormat variable and it starts working again.

craiggeil commented 11 months ago

Oh darn, the markdown eliminated the my code because I'm using backticks..lol. Let me try to upload a screenshot 2023-11-26 06 38 45

craiggeil commented 10 months ago

Looks like double curly braces cause the same problem. Might be related?

const acFormat = "{{typeId}} {{Name}} ({{RequestType}})";