Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit 6efc541

Browse files
authored
Merge pull request #13 from neogeek/hotfix/single-star-comments
Prevent single star comments from being parsed.
2 parents e039741 + 30250e4 commit 6efc541

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ const formatStringForUID = content =>
5252
*/
5353

5454
const parser = (content, filename) =>
55-
dox.parseComments(content, {'raw': true}).filter(method => !method.ignore && method.ctx)
55+
dox.parseComments(content, {
56+
'raw': true,
57+
'skipSingleStar': true
58+
}).filter(method => !method.ignore && method.ctx)
5659
.map(method => ({
5760
'uid': formatStringForUID(`${filename}-${method.ctx.string}`),
5861
'isPrivate': method.isPrivate,

test/fixtures/facade.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ function Facade(canvas, width, height) {
3434
this._width = null;
3535
this._height = null;
3636

37+
/* prettier ignore */
38+
3739
if (canvas && typeof canvas === 'object' && canvas.nodeType === 1) {
3840

3941
this.canvas = canvas;

0 commit comments

Comments
 (0)