-
-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
The documentation for strip.parse
is an incorrect copy-paste of strip.block
:
Lines 100 to 116 in 8b26809
/** | |
* 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; |
Apparently only the summary is correct:
Parses a string and returns a basic CST (Concrete Syntax Tree).
Metadata
Metadata
Assignees
Labels
No labels