From: Carl Worth Date: Wed, 10 Jun 2020 02:38:08 +0000 (-0700) Subject: Fix buggy regular expression X-Git-Url: https://git.cworth.org/git?p=lmno-server;a=commitdiff_plain;h=8001b29a6250b40adb530a084e0911a8625a5b44 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. --- 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);