Fix format of GUIDs

This commit is contained in:
Manuel Thalmann 2022-12-14 19:56:04 +01:00
parent 01fea03112
commit bc16d9607f
No known key found for this signature in database
GPG key ID: 5FD9AD3CCDDBD27B

View file

@ -31,7 +31,7 @@ let data = {};
*/ */
function createGuid() function createGuid()
{ {
return randexp(/[0-9a-f]{8}(-[0-9a-f]){4}[0-9a-f]{8}/); return randexp(/[0-9a-f]{8}(-[0-9a-f]{4}){4}[0-9a-f]{8}/);
} }
app.use(express.static(join(dirname, "..", "..", "game", "lib", "static"))); app.use(express.static(join(dirname, "..", "..", "game", "lib", "static")));