X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAllmate1.js;fp=client%2Fsrc%2Fvariants%2FAllmate1.js;h=1149ea9189b4392a5178839a9728a5b92da25752;hb=188b4a8f2e3edfa86c4e9169ddac9a14ebc12689;hp=5511dd54ddd6a35a3ab6c4a06005b4263b30369f;hpb=4b24c8ac99330258005c9e7c362f1f1720b97d9a;p=vchess.git diff --git a/client/src/variants/Allmate1.js b/client/src/variants/Allmate1.js index 5511dd54..1149ea91 100644 --- a/client/src/variants/Allmate1.js +++ b/client/src/variants/Allmate1.js @@ -291,7 +291,7 @@ export const VariantRules = class Allmate1Rules extends ChessRules { let notation = super.getNotation(move); // Add a capture mark (not describing what is captured...): if (move.vanish.length > 1 && move.appear.length == 1) { - if (notation.match(/^[a-h]x/)) + if (!!(notation.match(/^[a-h]x/))) // Pawn capture: remove initial "b" in bxc4 for example notation = notation.substr(1); notation = notation.replace("x","") + "X";