Skip to content

Commit

Permalink
Fix left trim on first level
Browse files Browse the repository at this point in the history
  • Loading branch information
happy5214 committed Oct 9, 2024
1 parent f501cc2 commit aa0b52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit aa0b52e

Please sign in to comment.