mirror of
https://github.com/huqi-pr/trending-in-one.git
synced 2024-11-17 13:58:28 +08:00
Update zhihu-search.ts
This commit is contained in:
parent
ba133f1c8f
commit
d2b5391b46
@ -33,7 +33,7 @@ if (await exists(fullPath)) {
|
|||||||
const wordsAll = mergeWords(words, wordsAlreadyDownload);
|
const wordsAll = mergeWords(words, wordsAlreadyDownload);
|
||||||
|
|
||||||
export const zhihuSearchData = wordsAll.map((x) => {
|
export const zhihuSearchData = wordsAll.map((x) => {
|
||||||
x.url = `https://www.zhihu.com/search?q=${x.query}`;
|
x.url = `https://www.zhihu.com/search?q=${x.query.replace(/(^\s+)|(\s+$)|\s+/g,'%20')}`;
|
||||||
return x;
|
return x;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user