From c9d97832a013c13ff38fe7fd009c1f255c6944e1 Mon Sep 17 00:00:00 2001 From: MickGe <59394233+MickGe@users.noreply.github.com> Date: Sun, 7 Nov 2021 10:08:27 +0100 Subject: [PATCH] Remove space in repo name To avoid error if paste repo name with space. --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();