Skip to content

Commit

Permalink
fix: remove node text after condition, close #62
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Aug 23, 2020
1 parent 55d6375 commit 2cefe7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function getNextTag (nodes, i) {

if (typeof node === 'object') {
return [i, node]
} else if (typeof node === 'string' && node.trim().length > 0) {
return [i++, node]
} else {
i++
}
Expand Down

0 comments on commit 2cefe7d

Please sign in to comment.