Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

Commit 6203c5e

Browse files
visualjerkelevatebart
authored andcommitted
fix: support comment having a longname like _default2
1 parent d98dc9b commit 6203c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getVueDoc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function getVueDoc(stateDoc, component) {
2323
return comment.kind !== 'package'
2424
})
2525
docComponent = docJsFile.filter(comment => {
26-
return comment.longname === 'module.exports' || comment.longname === 'default' || comment.longname === '_default'
26+
return comment.longname === 'module.exports' || comment.longname.match(/(_)?default(\d+)?$/g)
2727
})[0]
2828
} else {
2929
docJsFile = []

0 commit comments

Comments
 (0)