From aa0b52ee3a290d13c309c9bdb9f8e59473ede30c Mon Sep 17 00:00:00 2001 From: Alexander Jones Date: Wed, 9 Oct 2024 07:58:46 -0500 Subject: [PATCH] Fix left trim on first level --- parser/converter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser/converter.js b/parser/converter.js index 0d81fbd3..0658ddbe 100644 --- a/parser/converter.js +++ b/parser/converter.js @@ -109,9 +109,9 @@ export default class TagConverter { return childTag } - _getSchemaTag(i, trimLeft = false) { + _getSchemaTag(i) { let tagLevel = this.tagLevels[i].toLowerCase() - if (trimLeft) { + if (i === 0) { tagLevel = tagLevel.trimLeft() } if (tagLevel === '' || tagLevel !== tagLevel.trim()) {