Parser: Remove misplaced + in regular expression

This was a mistake in Ie994059. I experimented with different
patterns and apparently forgot to remove this. It doesn't make sense
here. The keys are numeric and can't contain a "+" character (but a
"-" in case the namespace is negative).

Change-Id: Ifdf22405c5ba9f300bed2a4e65ac487e64485f28
This commit is contained in:
thiemowmde 2023-10-05 20:52:10 +02:00
parent a9c67a87d0
commit aba0489c3e

View file

@ -268,7 +268,7 @@ class LinkHolderArray {
# Do the thing
$text = preg_replace_callback(
'/<!--LINK\'" (-?[\d+:]+)-->/',
'/<!--LINK\'" (-?[\d:]+)-->/',
static function ( array $matches ) use ( $replacePairs ) {
return $replacePairs[$matches[1]];
},