Fix bug #11 (lost double quotes in "] pattern
This commit is contained in:
@@ -64,8 +64,7 @@ class PgnParser
|
|||||||
private function cleanPgn()
|
private function cleanPgn()
|
||||||
{
|
{
|
||||||
$c = $this->pgnContent;
|
$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,10}([\.0-9]|{)/s', "\"]\n\n$1", $c);
|
||||||
|
|
||||||
$c = preg_replace("/{\s{0,6}\[%emt[^\}]*?\}/", "", $c);
|
$c = preg_replace("/{\s{0,6}\[%emt[^\}]*?\}/", "", $c);
|
||||||
|
Reference in New Issue
Block a user