Skip to content

Commit 886e6e9

Browse files
committed
fix: comments may be undefined
fixed #6
1 parent ff20882 commit 886e6e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function parseComment(line: string) {
2828

2929
return {
3030
type: comment?.type,
31-
content: content?.trim(),
31+
content: content?.trim() ?? '',
3232
}
3333
}
3434

0 commit comments

Comments
 (0)