Re-add fix from f1bec45d71
.
Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
parent
4dd2974d27
commit
f37f5aff74
|
@ -4695,7 +4695,7 @@ class GeSHi {
|
||||||
// TODO: a|bb|c => [ac]|bb
|
// TODO: a|bb|c => [ac]|bb
|
||||||
static $callback_2;
|
static $callback_2;
|
||||||
if (!isset($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);
|
$list = preg_replace_callback('#\(\?\:((?:.\|)+.)\)#', $callback_2, $list);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue