X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fvariants%2FXiangqi.js;h=6215ea9bfb5ebee16d22df62edb73d96db360565;hb=27cb34b5ca47f6afb7b7d089b919b03fd12608a9;hp=b3024332b68c22c281461018fef6f9225167aa1f;hpb=dbc79ee67847c36aad6b640b15d25d6fb7f361e5;p=vchess.git diff --git a/client/src/variants/Xiangqi.js b/client/src/variants/Xiangqi.js index b3024332..6215ea9b 100644 --- a/client/src/variants/Xiangqi.js +++ b/client/src/variants/Xiangqi.js @@ -395,7 +395,7 @@ export class XiangqiRules extends ChessRules { getNotation(move) { let notation = super.getNotation(move); if (move.vanish.length == 2 && move.vanish[0].p == V.PAWN) - notation = "P" + substr(notation, 1); + notation = "P" + notation.substr(1); return notation; }