Skip to content

Commit

Permalink
commons: nowiki signatures in formatSummary()
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Nov 23, 2023
1 parent 0c2cc40 commit a42b52f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reports/commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ function formatSummary(text) {
}
return text
.replace(/\{\{.*?\}\}/g, '<nowiki>$&</nowiki>')
.replace(/\[\[((?:Category|File|Image):.*?)\]\]/gi, '[[:$1]]');
.replace(/\[\[((?:Category|File|Image):.*?)\]\]/gi, '[[:$1]]')
.replace(/~{3,5}/g, '<nowiki>$&</nowiki>');
}

/**
Expand Down

0 comments on commit a42b52f

Please sign in to comment.