mirror of
https://github.com/msva/lua-htmlparser.git
synced 2024-11-27 12:44:22 +00:00
Made test succeed
This commit is contained in:
parent
ada9731719
commit
fc12dc87e0
@ -141,9 +141,10 @@ local function select(self, s)
|
|||||||
resultset = Set:new()
|
resultset = Set:new()
|
||||||
for subject in pairs(subjects) do
|
for subject in pairs(subjects) do
|
||||||
local star = subject.deepernodes
|
local star = subject.deepernodes
|
||||||
if childrenonly then star = Set:new(subject.nodes) childrenonly = false end
|
if childrenonly then star = Set:new(subject.nodes) end
|
||||||
resultset = resultset + star
|
resultset = resultset + star
|
||||||
end
|
end
|
||||||
|
childrenonly = false
|
||||||
if part == "*" then goto nextpart end
|
if part == "*" then goto nextpart end
|
||||||
local excludes, filter = Set:new()
|
local excludes, filter = Set:new()
|
||||||
for t, w in string.gmatch(part,
|
for t, w in string.gmatch(part,
|
||||||
|
Loading…
Reference in New Issue
Block a user