Cancel "$1" style removal in cleanPgn

This commit is contained in:
2021-06-05 13:12:35 +02:00
parent 0752f04ce4
commit 6c8c93f451

View File

@@ -69,7 +69,6 @@ class PgnParser
$c = preg_replace("/{\s{0,6}\[%emt[^\}]*?\}/", "", $c); $c = preg_replace("/{\s{0,6}\[%emt[^\}]*?\}/", "", $c);
$c = preg_replace("/\\$[0-9]+/s", "", $c);
$c = str_replace("({", "( {", $c); $c = str_replace("({", "( {", $c);
$c = preg_replace("/{([^\[]*?)\[([^}]?)}/s", '{$1-SB-$2}', $c); $c = preg_replace("/{([^\[]*?)\[([^}]?)}/s", '{$1-SB-$2}', $c);
$c = preg_replace("/\r/s", "", $c); $c = preg_replace("/\r/s", "", $c);