freeCodeCamp / freeCodeCamp/curriculum-helpers

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

Open
#269 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28
Forks
34
PR merge metrics
No merged PRs in 30d

Description

If a camper writes code like:

```js
/**
* 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: https://github.com/jonschlinkert/strip-comments/issues/51

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.