Skip to content

Commit

Permalink
fix(parser): don't modify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
merceyz committed Jul 18, 2019
1 parent 29a42f7 commit 95cd63e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,6 @@ export function parseFromProgram(
}

const comment = ts.displayPartsToString(symbol.getDocumentationComment(checker));
if (comment) {
return comment.replace(/(\r?\n)/, '$1* ');
}
return undefined;
return comment ? comment : undefined;
}
}

0 comments on commit 95cd63e

Please sign in to comment.