trim whitespace in searchString

pull/800/head
Hugo Bidois 2 years ago committed by GitHub
parent 6519daeaef
commit 582ff71117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,7 +26,7 @@ document.addEventListener('DOMContentLoaded', () => {
search.addEventListener('input', e => {
// grab search input value
const searchText = e.target.value.toLowerCase()
const searchText = e.target.value.toLowerCase().trim()
const hasFilter = searchText.length > 0;

Loading…
Cancel
Save