From bc16d9607fdaf1e95f1b25ee2f64cf8a314d1dcf Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 14 Dec 2022 19:56:04 +0100 Subject: [PATCH] Fix format of GUIDs --- packages/server/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/main.js b/packages/server/src/main.js index aa8b964..2be89a2 100644 --- a/packages/server/src/main.js +++ b/packages/server/src/main.js @@ -31,7 +31,7 @@ let data = {}; */ 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")));