1
0
mirror of synced 2025-12-19 18:10:59 -05:00

also pass the processed selector, not the original selector

This commit is contained in:
Sarah Schneider
2021-04-21 15:00:51 -04:00
parent 5ddaafb6ba
commit 6c51a6b970

View File

@@ -22,7 +22,7 @@ module.exports = options => {
throw new TypeError('Expected a `string` as selector')
}
for (const match of selectAll(options.selector, tree)) {
for (const match of selectAll(selector, tree)) {
visit(tree, match, (node, i, parent) => {
const parsedWrapper = parseSelector(wrapper)
parsedWrapper.children = [node]