处理搜索日志

This commit is contained in:
2024-12-16 10:39:14 +08:00
parent 76924ac0a5
commit 31cf0d0daa

View File

@@ -187,7 +187,9 @@ export function main() {
// 处理搜索日志 // 处理搜索日志
if (item.request.uri.startsWith('/api?query=')) { if (item.request.uri.startsWith('/api?query=')) {
const url = decodeURI(item.request.uri) const url = decodeURI(item.request.uri)
console.log(url) const regex = /text:"([^"]*)"/g
const match = regex.exec(url)
console.log(match)
return return
} }
}) })