From 032107320b5f12fab6f6b91553f40213980f7b9c Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Sat, 4 Nov 2023 20:57:41 -0500 Subject: [PATCH] Update Template.php --- Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Template.php b/Template.php index ef28653237..69905bf1d5 100644 --- a/Template.php +++ b/Template.php @@ -3750,7 +3750,7 @@ public function tidy_parameter(string $param) : void { if (in_array(strtolower($param), ['series', 'journal', 'newspaper']) && $this->has($param)) { $this->set($param, safe_preg_replace('~[™|®]$~u', '', $this->get($param))); // remove trailing TM/(R) } - if (in_array(str_replace('-', '', strtolower($param)), ['authorlink', 'chapterlink', 'contributorlink', + if (in_array(str_replace(array('-','0','1','2','3','4','5','6','7','8','9'), '', strtolower($param)), ['authorlink', 'chapterlink', 'contributorlink', 'editorlink', 'episodelink', 'interviewerlink', 'inventorlink', 'serieslink', 'subjectlink', 'titlelink', 'translatorlink']) && $this->has($param)) { $this->set($param, safe_preg_replace('~_~u', ' ', $this->get($param)));