TestRunnerSRL / bizhawk-co-op

Syncs inventory, ammo, and more of multiple players for a coop experience
GNU Lesser General Public License v3.0
56 stars 41 forks source link

Prevent Special Characters in the room name #37

Closed aofengen closed 5 years ago

aofengen commented 5 years ago

This PR adds form validation to the username field of the Lua script. If a user attempts to create or join a room with a non-alphanumeric character in their username, they receive an error in the Lua console informing them that the username must be made up of only letters or numbers.

This script change has been tested with the creation of a room, joining a room, and used for a live multiworld to ensure that nothing else was broken by this modification.