better-comments icon indicating copy to clipboard operation
better-comments copied to clipboard

Not working for multiline comments in JavaScript

Open To-Code-Or-Not-To-Code opened this issue 3 years ago • 3 comments

Better Comments Issue

I used this with JavaScript and I tested it with multiline comments and it didn't work.

To-Code-Or-Not-To-Code avatar Jul 13 '21 01:07 To-Code-Or-Not-To-Code

Actually it did work for me except for the ones that are like these:

/* TODO: Fix bugs */
/** TODO: Fix Bugs */

To-Code-Or-Not-To-Code avatar Jul 13 '21 01:07 To-Code-Or-Not-To-Code

The same goes for TypeScript.

Here's another example:

const random = `${0 /* TODO: make it random */}`;

Nircek avatar Aug 17 '21 13:08 Nircek

Example of not working TypesScript React

code

Working

code

marcoSven avatar Aug 27 '21 18:08 marcoSven