Skip to content

Empty string after strip with opening block comment symbol inside of a comment #269

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

Open
a2937 opened this issue Feb 18, 2025 · 0 comments

Comments

@a2937
Copy link
Member

a2937 commented Feb 18, 2025

If a camper writes code like:

/**
 * Some comment text
 *  example.com/*  
 */

let hello = 'world';
console.log(hello);
`

All they will end up left with is an empty string.

I think we need a way for block comment characters to be escaped when they're already inside of a block comment.

Issue noted from: jonschlinkert/strip-comments#51

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

No branches or pull requests

1 participant