From 8001b29a6250b40adb530a084e0911a8625a5b44 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 9 Jun 2020 19:38:08 -0700 Subject: [PATCH] Fix buggy regular expression I mean, it's unlikely that anyone would ever submit a URL with a square bracket just before the prompt number, so this probably never would have mattered all that much. --- empathy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/empathy.js b/empathy.js index 29d31bf..d91225d 100644 --- a/empathy.js +++ b/empathy.js @@ -91,7 +91,7 @@ router.post('/vote/:prompt_id([0-9]+)', (request, response) => { response.sendStatus(404); }); -router.post('/start/:prompt_id([[0-9]+)', (request, response) => { +router.post('/start/:prompt_id([0-9]+)', (request, response) => { const game = request.game; const prompt_id = parseInt(request.params.prompt_id, 10); -- 2.43.0