Remove space in repo name

To avoid error if paste repo name with space.
This commit is contained in:
MickGe 2021-11-07 10:08:27 +01:00 committed by GitHub
parent def2b23963
commit c9d97832a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();