diff --git a/main.js b/main.js index 041ca19..34acdfc 100644 --- a/main.js +++ b/main.js @@ -192,7 +192,7 @@ export function main() { if (item.request.uri.startsWith('/api?query=')) { const url = decodeURI(item.request.uri) const regex = /text:"([^"]*)"/g - const match = regex.exec(url) || [] + const match = regex.exec(url) if (match) { let key = match[1] 截图.搜索词.日.set(key, (截图.搜索词.日.get(key) || 0) + 1)