Fix index not being correctly incremented while parsing

This commit is contained in:
Elyan 2025-12-23 19:27:44 +01:00
parent 7781cf26b5
commit e4844ee7c7

View File

@ -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