From 3cbed87c3ebaae58b3bab01a67c852d0f0c495cd Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 20 Jan 2025 19:35:53 +0600 Subject: [PATCH] api/xiaohongshu: update initial state extraction regex Co-authored-by: jj --- api/src/processing/services/xiaohongshu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/processing/services/xiaohongshu.js b/api/src/processing/services/xiaohongshu.js index d428aaf9..4637358e 100644 --- a/api/src/processing/services/xiaohongshu.js +++ b/api/src/processing/services/xiaohongshu.js @@ -43,7 +43,7 @@ export default async function ({ id, token, shareId, h265, isAudioOnly, dispatch const initialState = html .split('')[0] - .replace(/:undefined/g, ":null"); + .replace(/:\s*undefined/g, ":null"); const data = JSON.parse(initialState);