mirror of
https://github.com/huqi-pr/trending-in-one.git
synced 2024-11-17 13:58:28 +08:00
fixed #7
This commit is contained in:
parent
9a60de53bb
commit
c0bed9b8ae
@ -33,7 +33,7 @@ if (await exists(fullPath)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const _words = words.map((x) => {
|
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;
|
return x;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user