We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de26f0f commit 634f18fCopy full SHA for 634f18f
src/build/mdn-comments.ts
@@ -35,7 +35,7 @@ function extractSummary(markdown: string): string {
35
// Normalize line breaks by collapsing consecutive newlines into a single space
36
const normalizedText = firstParagraph
37
// Extract first argument from multiple templates, handling escaped quotes & spaces
38
- .replace(/\{\{ *(?:\w+)*([^}]*)\}\}/g, (_, arg) => {
+ .replace(/\{\{ *(?:\w+)?([^}]*)\}\}/g, (_, arg) => {
39
arg = arg.trim();
40
if (!arg) {
41
return "";
0 commit comments