mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix X in chess
This commit is contained in:
@@ -7,7 +7,7 @@ const path = require('path');
|
|||||||
const { verify, reactIfAble } = require('../../util/Util');
|
const { verify, reactIfAble } = require('../../util/Util');
|
||||||
const { centerImagePart } = require('../../util/Canvas');
|
const { centerImagePart } = require('../../util/Canvas');
|
||||||
const { FAILURE_EMOJI_ID } = process.env;
|
const { FAILURE_EMOJI_ID } = process.env;
|
||||||
const turnRegex = /^((?:[A-H][1-8])|(?:[PKRQBNX]))?([A-H])?(?: |, ?|-?>?)?([A-H][1-8])(?:=([QRNB]))?$/;
|
const turnRegex = /^((?:[A-H][1-8])|(?:[PKRQBN]))?([A-H]|X)?(?: |, ?|-?>?)?([A-H][1-8])(?:=([QRNB]))?$/;
|
||||||
const pieces = ['pawn', 'rook', 'knight', 'king', 'queen', 'bishop'];
|
const pieces = ['pawn', 'rook', 'knight', 'king', 'queen', 'bishop'];
|
||||||
const cols = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'];
|
const cols = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user