Skip to content

Commit 2e720df

Browse files
committed
fix(parser): remove leftover asterisk
1 parent 35abb42 commit 2e720df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: src/parser.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,12 @@ export function parseFromProgram(
438438
let commentText = commentNode.comment ? commentNode.comment : '';
439439
if (commentNode.tags) {
440440
const tags = commentNode.tags
441-
.map(tag => tag.getText().trim())
441+
.map(tag =>
442+
tag
443+
.getText()
444+
.replace(/\* *$/, '')
445+
.trim(),
446+
)
442447
.reduce((prev, curr) => `${prev}\n${curr}`);
443448
commentText = commentText ? `${commentText}\n${tags}` : tags;
444449
}

0 commit comments

Comments
 (0)