Skip to content

Commit 634f18f

Browse files
committed
fix typo
1 parent de26f0f commit 634f18f

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
@@ -35,7 +35,7 @@ function extractSummary(markdown: string): string {
3535
// Normalize line breaks by collapsing consecutive newlines into a single space
3636
const normalizedText = firstParagraph
3737
// Extract first argument from multiple templates, handling escaped quotes & spaces
38-
.replace(/\{\{ *(?:\w+)*([^}]*)\}\}/g, (_, arg) => {
38+
.replace(/\{\{ *(?:\w+)?([^}]*)\}\}/g, (_, arg) => {
3939
arg = arg.trim();
4040
if (!arg) {
4141
return "";

0 commit comments

Comments
 (0)