Skip to content

Commit c7cb4c4

Browse files
committed
Fix incorrect extract of comments
1 parent 174b76c commit c7cb4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/mdn-comments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function extractSummary(markdown: string): string {
2929
// Keep link text but remove URLs
3030
.replace(/\[(.*?)\]\(.*?\)/g, "$1")
3131
.replace(/"/g, "'")
32-
.trim();
32+
.trim()
3333

3434
// Extract the first sentence (ending in . ! or ?)
3535
const sentenceMatch = normalizedText.match(/(.*?[.!?])(?=\s|$)/);

0 commit comments

Comments
 (0)