From: Chris Jaekl Date: Sun, 10 Jul 2022 02:06:03 +0000 (-0400) Subject: Trim whitespace from term before searching X-Git-Url: https://jaekl.net/gitweb/?a=commitdiff_plain;h=1f80d5c71c92981287a84394c7f0d7c73b9bf450;p=quanweb.git Trim whitespace from term before searching --- diff --git a/js/src/SearchController.js b/js/src/SearchController.js index 557fc1a..94c24d3 100644 --- a/js/src/SearchController.js +++ b/js/src/SearchController.js @@ -72,7 +72,7 @@ var SearchController = (function () { continue; } - var value = elem.value; + var value = elem.value.trim(); if (value.length > 0) { if (firstTime) { url += '?';