diff --git a/apps/tools.js b/apps/tools.js index 49a57a0..d00cfb5 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -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" }, { diff --git a/constants/constant.js b/constants/constant.js index 66cb408..7fbd98e 100644 --- a/constants/constant.js +++ b/constants/constant.js @@ -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' } ];