From a42b52f24dbc6a7ecc8e0db33c35a55f0f90efd0 Mon Sep 17 00:00:00 2001 From: Siddharth VP Date: Thu, 23 Nov 2023 15:52:13 +0530 Subject: [PATCH] commons: nowiki signatures in formatSummary() --- reports/commons.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reports/commons.js b/reports/commons.js index f30fe58..e4f9f4d 100644 --- a/reports/commons.js +++ b/reports/commons.js @@ -190,7 +190,8 @@ function formatSummary(text) { } return text .replace(/\{\{.*?\}\}/g, '$&') - .replace(/\[\[((?:Category|File|Image):.*?)\]\]/gi, '[[:$1]]'); + .replace(/\[\[((?:Category|File|Image):.*?)\]\]/gi, '[[:$1]]') + .replace(/~{3,5}/g, '$&'); } /**