From 95cd63eec0b5117cba0eaa2e66efd3577ccba535 Mon Sep 17 00:00:00 2001 From: merceyz Date: Thu, 18 Jul 2019 22:04:49 +0200 Subject: [PATCH] fix(parser): don't modify comments --- src/parser.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/parser.ts b/src/parser.ts index 8baa5cf..e606a61 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -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; } }