Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not strip comments from interpolated expressions #267

Open
a2937 opened this issue Feb 18, 2025 · 0 comments · May be fixed by #268
Open

Does not strip comments from interpolated expressions #267

a2937 opened this issue Feb 18, 2025 · 0 comments · May be fixed by #268

Comments

@a2937
Copy link
Member

a2937 commented Feb 18, 2025

Comments are not removed from code that uses interpolated expressions.

For example if campers have a line of code like :

const v = /*a*/`/*b*/${/*c*/12}`; 

The expected output should be

const v = `/*b*/${12}`;

However we end up with the following

const v = `/*b*/${/*c*/12}`;

Copied from: jonschlinkert/strip-comments#54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant