Skip to content

Commit d2b5391

Browse files
authored
Update zhihu-search.ts
1 parent ba133f1 commit d2b5391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: zhihu-search.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (await exists(fullPath)) {
3333
const wordsAll = mergeWords(words, wordsAlreadyDownload);
3434

3535
export const zhihuSearchData = wordsAll.map((x) => {
36-
x.url = `https://www.zhihu.com/search?q=${x.query}`;
36+
x.url = `https://www.zhihu.com/search?q=${x.query.replace(/(^\s+)|(\s+$)|\s+/g,'%20')}`;
3737
return x;
3838
});
3939

0 commit comments

Comments
 (0)