Remove space in repo name
To avoid error if paste repo name with space.
This commit is contained in:
parent
def2b23963
commit
c9d97832a0
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue