Fix bug #11 (lost double quotes in "] pattern

This commit is contained in:
2021-06-05 13:02:43 +02:00
parent 2bb109b77c
commit 0752f04ce4

View File

@@ -64,8 +64,7 @@ class PgnParser
private function cleanPgn()
{
$c = $this->pgnContent;
$c = preg_replace('/"\]\s{0,10}\[/s', "]\n[", $c);
$c = preg_replace('/"\]\s{0,10}\[/s', "\"]\n[", $c);
$c = preg_replace('/"\]\s{0,10}([\.0-9]|{)/s', "\"]\n\n$1", $c);
$c = preg_replace("/{\s{0,6}\[%emt[^\}]*?\}/", "", $c);