feat: 新增知乎问题解析

This commit is contained in:
zhiyu1998 2024-08-22 18:11:51 +08:00
parent 129ea7ef20
commit 38b8355330
2 changed files with 2 additions and 1 deletions

View File

@ -193,7 +193,7 @@ export class tools extends plugin {
fnc: "freyr"
},
{
reg: "(mp.weixin|arxiv.org|sspai.com|chinadaily.com.cn)",
reg: "(mp.weixin|arxiv.org|sspai.com|chinadaily.com.cn|zhihu.com)",
fnc: "linkShareSummary"
},
{

View File

@ -127,6 +127,7 @@ export const SUMMARY_CONTENT_ESTIMATOR_PATTERNS = [
{ reg: /(?:https?:\/\/)?arxiv.org\/[a-zA-Z\d._?%&+\-=\/#]*/, name: 'ArXiv论文' },
{ reg: /(?:https?:\/\/)?sspai.com\/[a-zA-Z\d._?%&+\-=\/#]*/, name: '少数派' },
{ reg: /(?:https?:\/\/)?www\.bilibili\.com\/read\/[A-Za-z\d._?%&+\-=\/#]*/, name: '哔哩哔哩专栏' },
{ reg: /(?:https?:\/\/)?www\.zhihu\.com\/question\/[A-Za-z\d._?%&+\-=\/#]*/, name: '知乎问题' },
{ reg: /(?:https?:\/\/)?(www\.)chinadaily.com.cn\/a\/[a-zA-Z0-9\d._?%&+\-=\/#]*/, name: 'ChinaDaily' }
];