Skip to content

Commit 95cd63e

Browse files
committed
fix(parser): don't modify comments
1 parent 29a42f7 commit 95cd63e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Diff for: src/parser.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,6 @@ export function parseFromProgram(
376376
}
377377

378378
const comment = ts.displayPartsToString(symbol.getDocumentationComment(checker));
379-
if (comment) {
380-
return comment.replace(/(\r?\n)/, '$1* ');
381-
}
382-
return undefined;
379+
return comment ? comment : undefined;
383380
}
384381
}

0 commit comments

Comments
 (0)