fix(clean_url): encode all space

This commit is contained in:
MDLeom 2025-03-19 10:14:51 +00:00
parent 5b432df69c
commit fd8184a806
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 1 additions and 1 deletions

View File

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