-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump to 1.0.4, fix escaped whitespace before " bug
Before this change, an escaped whitespace before the closing double quote character of a string would cause stripJsonComments() to see the double quote as escaped. This would throw off the comment removal algorithm since the string would still appear open. Escaped whitespace inside a string will cause a JSON parse error, but that shouldn't prevent stripJsonComments() from removing comments from otherwise legitimate JSON. The new test reproduced the error and verified the fix, which was to check the `inString` case before the whitespace-preserving cases.
- Loading branch information
Showing
4 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ Running the wrapper will generate the local `file://` URL to the generated | |
`index.html` file, e.g.: | ||
|
||
```text | ||
file:///path/to/jsdoc/output/jsdoc-cli-wrapper/1.0.3/index.html | ||
file:///path/to/jsdoc/output/jsdoc-cli-wrapper/1.0.4/index.html | ||
``` | ||
|
||
You can click on or copy this link to open it in your browser. You can also open | ||
|
@@ -99,10 +99,10 @@ This wrapper resolves both of these minor annoyances. | |
```sh | ||
$ pnpm jsdoc | ||
|
||
> [email protected].3 jsdoc /path/to/jsdoc-cli-wrapper | ||
> [email protected].4 jsdoc /path/to/jsdoc-cli-wrapper | ||
> node index.js -c jsdoc.json . | ||
|
||
file:///path/to/jsdoc-cli-wrapper/jsdoc/jsdoc-cli-wrapper/1.0.3/index.html | ||
file:///path/to/jsdoc-cli-wrapper/jsdoc/jsdoc-cli-wrapper/1.0.4/index.html | ||
``` | ||
|
||
Of course, your own project would use `jsdoc-cli-wrapper` instead of `node | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters