Skip to content

Commit 608e72c

Browse files
committed
Trax: Caps normalisation.
1 parent 555574d commit 608e72c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/games/trax.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,8 @@ export class TraxGame extends GameBase {
352352
}
353353
return result;
354354
}
355+
m = m.toLowerCase();
356+
m = m.replace(/\s+/g, "");
355357
if (!/^((\@|[a-z]+)\d+)?[\+\/\\]$/.test(m)) {
356358
result.valid = false;
357359
result.message = i18next.t("apgames:validation.trax.INVALID_NOTATION", { move: m });

0 commit comments

Comments
 (0)