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

View file

@ -20,7 +20,7 @@ function addDarkmodeWidget() {
} }
function fetchData() { function fetchData() {
const repo = document.getElementById('q').value; const repo = document.getElementById('q').value.replaceAll(' ','');
const re = /[-_\w]+\/[-_.\w]+/; const re = /[-_\w]+\/[-_.\w]+/;
const urlRepo = getRepoFromUrl(); const urlRepo = getRepoFromUrl();