diff --git a/src/formats/Data/DataCenterExtensions.cs b/src/formats/Data/DataCenterExtensions.cs index 4eb9532..a059d5f 100644 --- a/src/formats/Data/DataCenterExtensions.cs +++ b/src/formats/Data/DataCenterExtensions.cs @@ -174,10 +174,10 @@ void Evaluate(DataCenterNode node, ReadOnlySpan path) foreach (var child in node.Children) { - if (node.Name != name) + if (child.Name != name) continue; - if (path.Length == 1) + if (remaining is []) results.Add(child); else Evaluate(child, remaining);