Skip to content

Commit

Permalink
fixes allowing '-' on room ids. bump 0.11.9
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Aug 29, 2019
1 parent 0dca717 commit fec6752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "colyseus",
"version": "0.11.8",
"version": "0.11.9",
"description": "Multiplayer Game Server for Node.js.",
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/MatchMaker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type RemoteRoomResponse<T= any> = [string?, T?];
export class MatchMaker {
public handlers: {[id: string]: RegisteredHandler} = {};
public exposedMethods = ['joinOrCreate', 'create', 'join', 'joinById'];
public allowedRoomNameChars = /([a-zA-Z_0-9]+)/gi;
public allowedRoomNameChars = /([a-zA-Z_\-0-9]+)/gi;

private processId: string;
private localRooms: {[roomId: string]: Room} = {};
Expand Down

0 comments on commit fec6752

Please sign in to comment.