Skip to content

jsdoc-style comments are not removed #77

@visionmax

Description

@visionmax

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions