Re-add fix from f1bec45d71.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2019-06-09 14:35:24 +02:00
parent 4dd2974d27
commit f37f5aff74

View file

@ -4695,7 +4695,7 @@ class GeSHi {
// TODO: a|bb|c => [ac]|bb
static $callback_2;
if (!isset($callback_2)) {
$callback_2 = create_function('$matches', 'return "[" . str_replace("|", "", $matches[1]) . "]";');
$callback_2 = function($matches) {return "[" . str_replace("|", "", $matches[1]) . "]";};
}
$list = preg_replace_callback('#\(\?\:((?:.\|)+.)\)#', $callback_2, $list);
}