Skip to content

Commit 3c53d02

Browse files
committed
trim code
1 parent 2216c51 commit 3c53d02

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

web-report/src/lib/utils.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ export const extractComments = (code: string): string => {
8686
.split("\n")
8787
.map(line => line.replace(/^\s*\*\s?/, ""))
8888
.join("\n")
89-
.replace(/^\n+/, "")
90-
.replace(/\n+$/, "");
89+
.trim();
9190
})
9291
.filter(text => text.length > 0)
9392
.join("\n\n");

0 commit comments

Comments
 (0)