diff --git a/js/main.js b/js/main.js index 06efa4a..6d1fd1b 100644 --- a/js/main.js +++ b/js/main.js @@ -20,7 +20,7 @@ function addDarkmodeWidget() { } function fetchData() { - const repo = document.getElementById('q').value; + const repo = document.getElementById('q').value.replaceAll(' ',''); const re = /[-_\w]+\/[-_.\w]+/; const urlRepo = getRepoFromUrl();