Fix index not being correctly incremented while parsing
This commit is contained in:
parent
7781cf26b5
commit
e4844ee7c7
@ -121,7 +121,7 @@ func parseContainerComponent(ref Reference, index int) (*Container, error) {
|
|||||||
|
|
||||||
if isElementIdSeparator(runeValue) {
|
if isElementIdSeparator(runeValue) {
|
||||||
if len(currentName) > 0 {
|
if len(currentName) > 0 {
|
||||||
var e, err = parseElementComponent(ref, index)
|
var e, err = parseElementComponent(ref, i+w)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -199,7 +199,7 @@ func parseElementComponent(ref Reference, index int) (*Element, error) {
|
|||||||
|
|
||||||
if isMatcherSeparator(runeValue) {
|
if isMatcherSeparator(runeValue) {
|
||||||
if len(currentName) > 0 {
|
if len(currentName) > 0 {
|
||||||
var e, err = parseContainerComponent(ref, index)
|
var e, err = parseContainerComponent(ref, i+w)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user