From 8c2598289dcbb1e4907319c3ff1dc5570c3d8167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 30 Jul 2021 16:44:03 +0800 Subject: fix --- script/core/searcher.lua | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/script/core/searcher.lua b/script/core/searcher.lua index 0d59f494..7e8d47b1 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -936,18 +936,12 @@ local function searchAllGlobalByUri(status, mode, uri, fullID) noder.compileNodes(root) local noders = noder.getNoders(root) if fullID then - for id, node in pairs(noders) do - if node.source - and id == fullID then - for source in noder.eachSource(noders, id) do - m.pushResult(status, mode, source) - end - end + for source in noder.eachSource(noders, fullID) do + m.pushResult(status, mode, source) end else - for id, node in pairs(noders) do - if node.source - and ssub(id, 1, 2) == 'g:' + for id in pairs(noders.source) do + if ssub(id, 1, 2) == 'g:' and not sfind(id, noder.SPLIT_CHAR) then for source in noder.eachSource(noders, id) do m.pushResult(status, mode, source) -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0