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;