chess-moments 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -102,6 +102,11 @@ const momentsToPgn = (moments) => {
|
|
|
102
102
|
// Add the move
|
|
103
103
|
pgn += moment.move;
|
|
104
104
|
|
|
105
|
+
// Add suffix if present
|
|
106
|
+
if (moment.suffix) {
|
|
107
|
+
pgn += moment.suffix;
|
|
108
|
+
}
|
|
109
|
+
|
|
105
110
|
// Add comment if present
|
|
106
111
|
if (moment.comment) {
|
|
107
112
|
pgn += ` {${moment.comment}}`;
|