keep a string of moves/comments when parsing PGN.
This commit is contained in:
@@ -28,6 +28,7 @@ class PgnGameParser{
|
||||
|
||||
public function getParsedData(){
|
||||
$this->gameData = $this->getMetadata();
|
||||
$this->gameData[CHESS_JSON::MOVE_MOVES_STRING] = $this->getMoveString();
|
||||
$this->gameData[CHESS_JSON::MOVE_MOVES] = $this->getMoves();
|
||||
return $this->gameData;
|
||||
}
|
||||
@@ -140,4 +141,4 @@ class PgnGameParser{
|
||||
$gameData = preg_replace("/(\s+)/", " ", $gameData);
|
||||
return trim($gameData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user