Enabled '-' and '.' to be valid world-characters.

This commit is contained in:
FrozenCow 2011-03-04 20:15:52 +01:00
parent e771d94f24
commit 9ce160f1b9

View File

@ -29,7 +29,7 @@ public class ClientUpdateHandler implements HttpHandler {
this.server = server; this.server = server;
} }
Pattern updatePathPattern = Pattern.compile("world/([a-zA-Z0-9_]+)/([0-9]*)"); Pattern updatePathPattern = Pattern.compile("world/([a-zA-Z0-9_-\\.]+)/([0-9]*)");
@Override @Override
public void handle(String path, HttpRequest request, HttpResponse response) throws Exception { public void handle(String path, HttpRequest request, HttpResponse response) throws Exception {