From d254ce302189cac310274e8e417de3058ff4d758 Mon Sep 17 00:00:00 2001 From: Dan Janosik Date: Thu, 12 Apr 2018 11:42:57 -0400 Subject: [PATCH] Fix #23 --- routes/baseActionsRouter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/baseActionsRouter.js b/routes/baseActionsRouter.js index adb6c88..5fc010c 100644 --- a/routes/baseActionsRouter.js +++ b/routes/baseActionsRouter.js @@ -217,7 +217,7 @@ router.post("/search", function(req, res) { return; } - var query = req.body.query.toLowerCase(); + var query = req.body.query.toLowerCase().trim(); req.session.query = req.body.query;