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

Commit 55d7cba

Browse files
committed
Changed rendering of optional parameters.
1 parent 551360f commit 55d7cba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const parser = (content, filename) =>
3636

3737
})
3838
.join(', ')
39-
.replace(/\], \[/g, ', '),
39+
.replace(/\], \[/g, ', ')
40+
.replace(', [', '[, '),
4041
'tags': {
4142
'example': method.tags.filter(tag => tag.type === 'example')
4243
.map(tag => tag.string),

0 commit comments

Comments
 (0)