|
|
|
/** |
|
* Parses a string and returns a basic CST (Concrete Syntax Tree). |
|
* |
|
* ```js |
|
* const strip = require('..'); |
|
* const str = strip.block('const foo = "bar";// this is a comment\n /* me too *\/'); |
|
* console.log(str); |
|
* // => 'const foo = "bar";// this is a comment' |
|
* ``` |
|
* @name .block |
|
* @param {String} `input` string from which to strip comments |
|
* @param {Object} `options` pass `opts.keepProtected: true` to keep ignored comments (e.g. `/*!`) |
|
* @return {String} modified string |
|
* @api public |
|
*/ |
|
|
|
strip.parse = parse; |
The original issue says it is also incorrect.
Original issue: jonschlinkert/strip-comments#56
curriculum-helpers/lib/strip.ts
Lines 97 to 114 in 6c30217
The original issue says it is also incorrect.
Original issue: jonschlinkert/strip-comments#56