From be06aeba407c51fc922ae1a2e0b0760353a6d78d Mon Sep 17 00:00:00 2001
From: sddiky <50159262+sddiky@users.noreply.github.com>
Date: Thu, 2 Mar 2023 20:50:54 +0800
Subject: [PATCH] =?UTF-8?q?fix(route):=20=E4=B8=AD=E5=9B=BD=E7=BB=8F?=
=?UTF-8?q?=E6=B5=8E50=E4=BA=BA=E8=AE=BA=E5=9D=9B=E4=B8=93=E5=AE=B6?=
=?UTF-8?q?=E6=96=87=E7=AB=A0=20(#12007)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* 生成中国经济50人论坛专家文章的RSS
* 添加路由
* 修正link url重复斜杠的问题
* refactor: migrate to v2
* 修改了匹配条目的正则表达式,应对部分条目没有作者信息的特殊情况
* fix: fix category
---------
---
docs/new-media.md | 6 ------
docs/study.md | 6 ++++++
lib/v2/50forum/radar.js | 2 +-
lib/v2/50forum/zhuanjia.js | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/docs/new-media.md b/docs/new-media.md
index a50184a8c..9e0d4114c 100644
--- a/docs/new-media.md
+++ b/docs/new-media.md
@@ -2626,12 +2626,6 @@ others = 热点新闻 + 滚动新闻
-## 经济 50 人论坛
-
-### 专家文章
-
-
-
## 鲸跃汽车
### 首页
diff --git a/docs/study.md b/docs/study.md
index 46a92ea6e..5e62455e6 100644
--- a/docs/study.md
+++ b/docs/study.md
@@ -357,6 +357,12 @@ path="/ctfhub/upcoming/:limit?"
+## 经济 50 人论坛
+
+### 专家文章
+
+
+
## 领研
### 论文
diff --git a/lib/v2/50forum/radar.js b/lib/v2/50forum/radar.js
index 1105e86c8..378c62ee7 100644
--- a/lib/v2/50forum/radar.js
+++ b/lib/v2/50forum/radar.js
@@ -4,7 +4,7 @@ module.exports = {
'.': [
{
title: '专家文章',
- docs: 'https://docs.rsshub.app/new-media.html#jing-ji-50-ren-lun-tan',
+ docs: 'https://docs.rsshub.app/study.html#jing-ji-50-ren-lun-tan',
source: ['/home/article/index/category/zhuanjia.html', '/'],
target: '/50forum',
},
diff --git a/lib/v2/50forum/zhuanjia.js b/lib/v2/50forum/zhuanjia.js
index 456e0158d..7033c963b 100644
--- a/lib/v2/50forum/zhuanjia.js
+++ b/lib/v2/50forum/zhuanjia.js
@@ -20,7 +20,7 @@ module.exports = async (ctx) => {
.map((item) => {
item = $(item);
const link = rootUrl + item.attr('href');
- const reg = /^(.+)\[(.+)\](.+)$/;
+ const reg = /^(.+)\[(.*)\](.+)$/;
const keyword = reg.exec(item.text().trim());
return {
title: keyword[1],