mirror of
https://github.com/techgaun/active-forks.git
synced 2024-12-22 13:32:14 +01:00
Remove space in repo name
To avoid error if paste repo name with space.
This commit is contained in:
parent
def2b23963
commit
c9d97832a0
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue