This commit is contained in:
Dragon Fire
2020-04-09 17:27:42 -04:00
parent 419a64fe16
commit db1143160c
+1 -1
View File
@@ -56,7 +56,7 @@ module.exports = class DotsAndBoxesCommand extends Command {
const choice = res.content;
if (choice.toLowerCase() === 'end') return true;
const matched = choice.match(/([0-9]+)\-([0-9]+)/);
if (!match) return false;
if (!matched) return false;
let first = Number.parseInt(matched[1], 10);
let second = Number.parseInt(matched[2], 10);
if (first === second) return false;