From 491de3de85835b13ab13bec703e3eb757a1d4e26 Mon Sep 17 00:00:00 2001 From: xxyzz Date: Thu, 6 Jun 2024 09:49:24 +0800 Subject: [PATCH] Remove upper case substitution modifiers an upper case "SAFESUBST:" is used in https://en.wiktionary.org/wiki/Template:ordinal --- src/wikitextprocessor/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wikitextprocessor/core.py b/src/wikitextprocessor/core.py index 6bd96d8..35e2eff 100644 --- a/src/wikitextprocessor/core.py +++ b/src/wikitextprocessor/core.py @@ -1522,7 +1522,9 @@ def expander(arg: str) -> str: tname = ( tname.strip() .removeprefix("subst:") + .removeprefix("SUBST:") .removeprefix("safesubst:") + .removeprefix("SAFESUBST:") ) # Check if it is a parser function call