From e4844ee7c70698feb9d150483d2cb06d237ba204 Mon Sep 17 00:00:00 2001 From: Elyan Date: Tue, 23 Dec 2025 19:27:44 +0100 Subject: [PATCH] Fix index not being correctly incremented while parsing --- query/ref.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query/ref.go b/query/ref.go index ac847cc..312449a 100644 --- a/query/ref.go +++ b/query/ref.go @@ -121,7 +121,7 @@ func parseContainerComponent(ref Reference, index int) (*Container, error) { if isElementIdSeparator(runeValue) { if len(currentName) > 0 { - var e, err = parseElementComponent(ref, index) + var e, err = parseElementComponent(ref, i+w) if err != nil { return nil, err @@ -199,7 +199,7 @@ func parseElementComponent(ref Reference, index int) (*Element, error) { if isMatcherSeparator(runeValue) { if len(currentName) > 0 { - var e, err = parseContainerComponent(ref, index) + var e, err = parseContainerComponent(ref, i+w) if err != nil { return nil, err