Skip to content

Commit

Permalink
πŸ› Fix element function body source code not being closed properly
Browse files Browse the repository at this point in the history
  • Loading branch information
skerit committed May 5, 2024
1 parent ce1ad61 commit ef21950
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/parser/function_body.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ FunctionBody.setMethod(function getSourceCode() {

let result = '',
entry;

for (entry of this.content) {

if (entry.source) {
Expand All @@ -115,6 +115,11 @@ FunctionBody.setMethod(function getSourceCode() {

if (entry.function_body) {
result += entry.function_body.getSourceCode();

if (entry.function_body.type == 'element') {
result += '</' + entry.function_body.info.toLowerCase() + '>';
}

continue;
}

Expand Down

0 comments on commit ef21950

Please sign in to comment.