Fix 'invalid' error message.
parent
b04724e3c6
commit
3853214e8d
|
@ -321,7 +321,7 @@ export function pieceJumpingHandler(wrapSound: () => void, errorSound: () => voi
|
|||
const $promotionPiece = ev.key.toLowerCase();
|
||||
const $form = $moveBox.parent().parent();
|
||||
if (!$promotionPiece.match(/^[qnrb]$/)) {
|
||||
$boardLive.text('Invalid promotion piece. ' + $boardLive.text());
|
||||
$boardLive.text('Invalid promotion piece. q for queen, n for knight, r for rook, b for bisho');
|
||||
return false;
|
||||
}
|
||||
$moveBox.val($moveBox.val() + $promotionPiece);
|
||||
|
|
Loading…
Reference in New Issue