From 8bf8cc4df0ef62abdc4b325a191923decd1331a4 Mon Sep 17 00:00:00 2001 From: WandererXII <43043181+WandererXII@users.noreply.github.com> Date: Thu, 8 Aug 2024 02:45:47 +0200 Subject: [PATCH] Fix #853 --- ui/keyboardMove/src/plugins/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/keyboardMove/src/plugins/util.ts b/ui/keyboardMove/src/plugins/util.ts index 78c1361724c17..7f3bc2eba480d 100644 --- a/ui/keyboardMove/src/plugins/util.ts +++ b/ui/keyboardMove/src/plugins/util.ts @@ -82,7 +82,7 @@ export function regexMatchAllSquares(str: string): Square[] { let match; while ((match = keyR.exec(str)) !== null) { const sq = toSquare(match[0]); - if (sq) matches.push(sq); + if (sq !== undefined) matches.push(sq); } return matches; }