diff --git a/app/frontend/templates/panel/server_logs.html b/app/frontend/templates/panel/server_logs.html index 19ff4f82..38119369 100644 --- a/app/frontend/templates/panel/server_logs.html +++ b/app/frontend/templates/panel/server_logs.html @@ -144,6 +144,10 @@ let typeInterval = 500; let searchInput = document.getElementById('searchbox'); + function sanitize(string) { + return string.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, ''); + } + searchInput.addEventListener('keyup', (e) => { clearTimeout(typingTimer); typingTimer = setTimeout(liveSearch, typeInterval); @@ -181,10 +185,6 @@ }); - function sanitize(string) { - return string.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi, ''); - } - function deleteItem(item) { let safe_item = sanitize(item); words.splice(words.indexOf(item), 1);