freeCodeCamp / freeCodeCamp/curriculum-helpers

Does not strip comments from interpolated expressions

Open
#267 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

Comments are not removed from code that uses interpolated expressions.

For example if campers have a line of code like :

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

The expected output should be

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

However we end up with the following

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

Copied from: https://github.com/jonschlinkert/strip-comments/issues/54

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.