Skip to content
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

"/*" within comments breaks stripping logic #69

Open
nex3 opened this issue Oct 4, 2021 · 0 comments
Open

"/*" within comments breaks stripping logic #69

nex3 opened this issue Oct 4, 2021 · 0 comments

Comments

@nex3
Copy link

nex3 commented Oct 4, 2021

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;
}
nex3 added a commit to sass/sass that referenced this issue Oct 4, 2021
The strip-comments package is broken by
jonschlinkert/strip-comments#69 and doesn't seem to be maintained
anymore.
mirisuzanne pushed a commit to sass/sass that referenced this issue Feb 10, 2022
The strip-comments package is broken by
jonschlinkert/strip-comments#69 and doesn't seem to be maintained
anymore.
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