From 0e81bf96515fbc5a63aeda075a2e4bcd03aa2700 Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 19 Mar 2024 13:42:09 +0800 Subject: [PATCH] fix: cs index path (#14846) --- lib/routes/cs/index.ts | 2 +- lib/routes/cs/namespace.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/routes/cs/index.ts b/lib/routes/cs/index.ts index 8b240ee87..b4446df9e 100644 --- a/lib/routes/cs/index.ts +++ b/lib/routes/cs/index.ts @@ -14,7 +14,7 @@ const decodeBufferByCharset = (buffer) => { }; export const route: Route = { - path: '/:category?', + path: '/:category{.+}?', name: '栏目', parameters: { category: '分类,见下表,默认为首页' }, maintainers: ['nczitzk'], diff --git a/lib/routes/cs/namespace.ts b/lib/routes/cs/namespace.ts index 72e1235ae..3a5d2464c 100644 --- a/lib/routes/cs/namespace.ts +++ b/lib/routes/cs/namespace.ts @@ -3,4 +3,5 @@ import type { Namespace } from '@/types'; export const namespace: Namespace = { name: '中证网', url: 'cs.com.cn', + categories: ['finance'], };