From 661cf4582c563d7a0bb250ae542b8661b8e52df5 Mon Sep 17 00:00:00 2001 From: Siddharth VP Date: Sat, 15 Apr 2023 15:56:36 +0530 Subject: [PATCH] TextExtractor: add missing g flag in postnomials regex --- TextExtractor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TextExtractor.ts b/TextExtractor.ts index 359d829..679f268 100644 --- a/TextExtractor.ts +++ b/TextExtractor.ts @@ -143,6 +143,6 @@ export default class TextExtractor { // Openings of any unclosed ref tags .replace(/|(?=\n))/gi, '') // remove categories added via {{post-nomials}} - .replace(/(\|country=[A-Z]{3})-cats/, '$1'); + .replace(/(\|country=[A-Z]{3})-cats/g, '$1'); } }