Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
astro-wt
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c2977574
authored
2025-02-03 16:34:47 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Oops, 'list' was only matching on one item, because the boolean was
inverted.
1 parent
17c366bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
lib/html.ts
lib/html.ts
View file @
c297757
...
...
@@ -142,9 +142,9 @@ const compileMatcher = (ast: AST, selector: string): MatcherProducer => {
const
matchers
=
ast
.
list
.
map
(
s
=>
makeMatcher
(
s
))
return
(
context
,
node
,
parent
,
i
,
debug
,
special
)
=>
{
for
(
const
matcher
of
matchers
)
{
if
(
!
matcher
(
context
,
node
,
parent
,
i
,
debug
,
special
))
return
fals
e
if
(
matcher
(
context
,
node
,
parent
,
i
,
debug
,
special
))
return
tru
e
}
return
tru
e
return
fals
e
}
}
case
'compound'
:
{
...
...
Please
register
or
sign in
to post a comment