Skip to content

Commit

Permalink
Fix off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
mattzeunert committed Jun 22, 2020
1 parent 1f95378 commit f31a183
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 491,8 @@ export default function mapInnerHTMLAssignment(
) === "/>";
if (hasClosingTagButNotInAssignedHtml) {
console.log("hasClosingTagButNotInAssignedHtml");
charsAddedInSerializedHtml = closingTag.length - "/>".length;
// I don't really understand the 1, but it's needed
charsAddedInSerializedHtml = closingTag.length - "/>".length 1;
}
}
} else {
Expand Down

0 comments on commit f31a183

Please sign in to comment.