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

jsdoc-style comments are not removed #77

Open
visionmax opened this issue Dec 2, 2022 · 0 comments
Open

jsdoc-style comments are not removed #77

visionmax opened this issue Dec 2, 2022 · 0 comments

Comments

@visionmax
Copy link

Issue

Does not remove comment blocks that are written in JSDoc style. Tested with version 2.0.1

Reproduce

An example of a JavaScript code with comments:

/* this will be removed */
// and so will this

/**
 * But this will not - jsdoc style comments for documentation creation
 * @param {Number} a
 * @param {Number} b
 * @returns {Number}
 */
var testMethod = (a,b) => {
      return a*b;
};

In gulp file:

var strip = require("strip-comments");
var src_code = fsystem.readFileSync("path/to/file.js","utf8");
var stripped = strip(src_code);
console.log(stripped);
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