mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	trim whitespace before searching
This commit is contained in:
		| @@ -52,7 +52,7 @@ function activeToggle() { | |||||||
| sInput.onkeyup = function (e) { | sInput.onkeyup = function (e) { | ||||||
|     // run a search query (for "term") every time a letter is typed |     // run a search query (for "term") every time a letter is typed | ||||||
|     // in the search box |     // in the search box | ||||||
|     const results = fuse.search(this.value); // the actual query being run using fuse.js |     const results = fuse.search(this.value.trim()); // the actual query being run using fuse.js | ||||||
|  |  | ||||||
|     if (results.length !== 0) { |     if (results.length !== 0) { | ||||||
|         // build our html if result exists |         // build our html if result exists | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange