]> jaekl.net Git - quanweb.git/commitdiff
Trim whitespace from term before searching
authorChris Jaekl <chris@localhost>
Sun, 10 Jul 2022 02:06:03 +0000 (22:06 -0400)
committerChris Jaekl <chris@localhost>
Sun, 10 Jul 2022 02:06:03 +0000 (22:06 -0400)
js/src/SearchController.js

index 557fc1aa42c02c5ab1bd1116787481023b626a91..94c24d3bd703ae8be4e7175cea47242c84df4d69 100644 (file)
@@ -72,7 +72,7 @@ var SearchController = (function () {
                 continue;
             }
 
-            var value = elem.value;
+            var value = elem.value.trim();
             if (value.length > 0) {
                 if (firstTime) {
                     url += '?';