From d4f2fe39ead4cab5a371270a979518d0cb4a34a1 Mon Sep 17 00:00:00 2001 From: Jens Frank Date: Tue, 1 Jun 2004 06:02:13 +0000 Subject: [PATCH] thumbs with alt text starting with center or ending in centre are centred, which they shouldn't. BUG #963876 --- includes/MagicWord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 9089d5108a..bb7b7c1640 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -110,7 +110,7 @@ class MagicWord { $this->mRegexStart = "/^{$this->mBaseRegex}/{$case}"; $this->mVariableRegex = str_replace( "\\$1", "([$variableClass]*?)", $this->mRegex ); $this->mVariableStartToEndRegex = str_replace( "\\$1", "([$variableClass]*?)", - "/^{$this->mBaseRegex}$/{$case}" ); + "/^({$this->mBaseRegex})$/{$case}" ); } # Gets a regex representing matching the word -- 2.20.1