We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a03723 commit 6b668f7Copy full SHA for 6b668f7
src/path/node.ts
@@ -56,6 +56,6 @@ export default class Node {
56
static matching(first: Node[], second: Node[]): Node[] {
57
let matchedCount = first.reduce((prev, node, i) =>
58
prev === i && i < second.length && node.state === second[i].state ? i + 1 : prev, 0);
59
- return first.slice(matchedCount);
+ return first.slice(0, matchedCount);
60
}
61
0 commit comments