This commit is contained in:
huqi 2022-03-10 14:13:47 +08:00 committed by GitHub
parent 9a60de53bb
commit c0bed9b8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ if (await exists(fullPath)) {
}
const _words = words.map((x) => {
x.url = `https://so.toutiao.com/search?keyword=${x.word.replace(" ", "+")}`;
x.url = `https://so.toutiao.com/search?keyword=${x.word.replace(/(^\s+)|(\s+$)|\s+/g,'%20')}`;
return x;
});