diff --git a/yadc/static/search.js b/yadc/static/search.js index 9eee35e..4f28238 100644 --- a/yadc/static/search.js +++ b/yadc/static/search.js @@ -145,7 +145,7 @@ var ajax_timeout suggest_input.addEventListener('input', (event) => { clearTimeout(ajax_timeout) - let value = suggest_input.value.trim() + let value = suggest_input.value.replace(/ /g, '_').trim() if (value.length < 2) { render_suggestions([])