Skip to content

Commit

Permalink
capricorn86#519@patch: Fix stuck bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mas0nShi committed Feb 24, 2023
1 parent 8db7f0a commit 96999a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/happy-dom/src/xml-parser/XMLParser.ts
Expand Up @@ -68,10 +68,10 @@ export default class XMLParser {
isStartTag &&
(condCommMatch = condCommRegexp.exec(text)) &&
condCommMatch[0] &&
(condCommEndMatch = condCommEndRegexp.exec(data)) &&
(condCommEndMatch = condCommEndRegexp.exec(data.substring(markupRegexp.lastIndex))) &&
condCommEndMatch[0]
) {
markupRegexp.lastIndex = condCommEndRegexp.lastIndex;
markupRegexp.lastIndex += condCommEndRegexp.lastIndex;
continue;
} else {
this.appendTextAndCommentNodes(document, parent, text);
Expand Down

0 comments on commit 96999a8

Please sign in to comment.