Skip to content

Commit

Permalink
[ExportMap] fix condition for checking if block comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ljqx committed Nov 16, 2018
1 parent 798eed7 commit 338508a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExportMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function captureJsDoc(comments) {
// capture XSDoc
comments.forEach(comment => {
// skip non-block comments
if (comment.value.slice(0, 4) !== '*\n *') return
if (comment.type !== 'Block') return
try {
doc = doctrine.parse(comment.value, { unwrap: true })
} catch (err) {
Expand Down

0 comments on commit 338508a

Please sign in to comment.