Skip to content

Commit

Permalink
capricorn86#916@patch: Fixes issue in the XML parser where it failed …
Browse files Browse the repository at this point in the history
…to parse comments including dash characters (-).
  • Loading branch information
capricorn86 committed May 13, 2023
1 parent 8d4f418 commit 63aa8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/happy-dom/src/xml-parser/XMLParser.ts
Expand Up @@ -24,7 +24,7 @@ import * as Entities from 'entities';
* Group 8: End of start tag (e.g. ">" in "<div>").
*/
const MARKUP_REGEXP =
/<([a-zA-Z0-9-]+)|<\/([a-zA-Z0-9-]+)>|<!--([^-]+(?:-[^-]+)*)-->|<!--([^>]+)>|<!([^>]+)>|<\?([^>]+)>|(\/>)|(>)/gm;
/<([a-zA-Z0-9-]+)|<\/([a-zA-Z0-9-]+)>|<!--([\s\S]+)-->|<!--([^>]+)>|<!([^>]+)>|<\?([^>]+)>|(\/>)|(>)/gm;

/**
* Attribute RegExp.
Expand Down

0 comments on commit 63aa8c6

Please sign in to comment.