From e962afe3f03a43c9333523fcb44fadb94399f37d Mon Sep 17 00:00:00 2001 From: Siddharth VP Date: Sat, 28 Sep 2024 13:17:29 +0530 Subject: [PATCH] text-extractor: strip {{sfnm}} as well https://en.wikipedia.org/wiki/User_talk:SD0001#Minor_parsing_error_w/r/t_User:SDZeroBot/NPP_sorting --- TextExtractor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TextExtractor.ts b/TextExtractor.ts index 679f268..fc28c1b 100644 --- a/TextExtractor.ts +++ b/TextExtractor.ts @@ -35,8 +35,8 @@ export default class TextExtractor { extract = this.removeTemplatesOnNewlines(extract); // Remove some other templates too - // Matches r, efn, refn, sfn, sfnp, harv, harvp, audio, and IPA.* family - extract = this.removeTemplates(extract, /^(r|sfn[bp]?|harvp?|r?efn|respell|IPA.*|audio)$/i); + // Matches r, efn, refn, sfn, sfnm, sfnp, harv, harvp, audio, and IPA.* family + extract = this.removeTemplates(extract, /^(r|sfn[bmp]?|harvp?|r?efn|respell|IPA.*|audio)$/i); extract = extract .replace(//sg, '')