From a0cb64eb72752329173940f85c8e3a7397537c05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Ku=C5=BE=C3=ADlek?= Date: Tue, 10 Mar 2020 17:15:03 +0100 Subject: [PATCH] Lol forgot search spaces fix --- yadc/static/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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([])