diff --git a/update-readme.js b/update-readme.js index ab3f152..dda4726 100755 --- a/update-readme.js +++ b/update-readme.js @@ -167,7 +167,7 @@ function parseCollectionYaml(filePath) { } else if (currentObject && leadingSpaces > 0) { // Property of current object (e.g., display properties) currentObject[key] = value === "true" ? true : value === "false" ? false : value; - } else if (currentArray && currentObject && leadingSpaces > leadingSpaces) { + } else if (currentArray && currentObject && leadingSpaces > 2) { // Property of array item object currentObject[key] = value; } diff --git a/validate-collections.js b/validate-collections.js index 28ab240..969d0f3 100644 --- a/validate-collections.js +++ b/validate-collections.js @@ -99,7 +99,7 @@ function parseCollectionYaml(filePath) { } else if (currentObject && leadingSpaces > 0) { // Property of current object (e.g., display properties) currentObject[key] = value === "true" ? true : value === "false" ? false : value; - } else if (currentArray && currentObject && leadingSpaces > leadingSpaces) { + } else if (currentArray && currentObject && leadingSpaces > 2) { // Property of array item object currentObject[key] = value; }