strip-comments
strip-comments copied to clipboard
"/*" within comments breaks stripping logic
If I include a /*
within one of my comments, strip-comments
incorrectly removes everything after it in the file:
const strip = require('strip-comments');
console.log(strip(`
export interface A {
b: boolean;
/**
* /*
*/
c: boolean;
}
`));
This emits:
export interface A {
b: boolean;
but it should emit:
export interface A {
b: boolean;
c: boolean;
}