From 27474442ca9443e72f11ef52299244e8c770cb33 Mon Sep 17 00:00:00 2001 From: Andvari <31068367+dzx-dzx@users.noreply.github.com> Date: Sun, 6 Oct 2024 19:21:59 +0800 Subject: [PATCH] fix(route/zhihu): Repair the regex for extracting `__zse_ck` (#17011) --- lib/routes/zhihu/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/zhihu/utils.ts b/lib/routes/zhihu/utils.ts index 3a41e1131..00ed64e4a 100644 --- a/lib/routes/zhihu/utils.ts +++ b/lib/routes/zhihu/utils.ts @@ -75,7 +75,7 @@ export const getSignedHeader = async (url: string, apiPath: string) => { } const response1 = await ofetch.raw('https://static.zhihu.com/zse-ck/v3.js'); const script = await response1._data.text(); - const zseCk = script.match(/__g\.ck\|\|"([\w+/=\\]*?)",_=630e8;/)?.[1]; + const zseCk = script.match(/__g\.ck\|\|"([\w+/=\\]*?)",_=/)?.[1]; const response2 = zseCk ? await ofetch.raw(url, {