]> git.cworth.org Git - empires-server/commit
lmno: Be forgiving in game ID values received from the user
authorCarl Worth <cworth@cworth.org>
Wed, 20 May 2020 02:10:27 +0000 (19:10 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 20 May 2020 02:10:27 +0000 (19:10 -0700)
commitfb0b1540096a2014db71c374d3147d6c2143f491
tree2b434011cf6a305172c1f14c17dc8c95cfbc12ac
parent615d8cf656c88fa3ebd6deceecf468338928815e
lmno: Be forgiving in game ID values received from the user

Most significantly, we now accept a lowercase version of the ID.

But also, game ID values are intentionally chosen not to have
ambiguous character in them, (such as "M"/"N" or "S"/"F"), which might
sound similar when someone says a game ID aloud. So on the input side
we accept either form and canonicalize to the only letter which can
possibly exist in a game ID.
lmno.js