fix(clean_url): encode all space
This commit is contained in:
parent
5b432df69c
commit
fd8184a806
|
@ -42,7 +42,7 @@ for await (const line of createInterface({ input: process.stdin, terminal: false
|
|||
// remove www
|
||||
.replace(/^www\./, '')
|
||||
// url encode space #11
|
||||
.replace(' ', '%20')
|
||||
.replaceAll(' ', '%20')
|
||||
.replace(/(^[^/]*)\/+$/, '$1')
|
||||
|
||||
console.log(outUrl)
|
||||
|
|
Loading…
Reference in New Issue