From 31cf0d0daa41376598eb26b369da090b6eb2b5c9 Mon Sep 17 00:00:00 2001 From: satori Date: Mon, 16 Dec 2024 10:39:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=90=9C=E7=B4=A2=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 90dadb9..ca1c0d4 100644 --- a/main.js +++ b/main.js @@ -187,7 +187,9 @@ export function main() { // 处理搜索日志 if (item.request.uri.startsWith('/api?query=')) { const url = decodeURI(item.request.uri) - console.log(url) + const regex = /text:"([^"]*)"/g + const match = regex.exec(url) + console.log(match) return } })