Skip to content

Commit dcd1add

Browse files
josephperrottthePunderWoman
authored andcommitted
fix(core): correct incomplete escaping (#51557)
Correct incomplete escaping and replace all instances of comment delimiters PR Close #51557
1 parent 8081fdd commit dcd1add

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/util/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const COMMENT_DISALLOWED = /^>|^->|<!--|-->|--!>|<!-$/g;
1515
/**
1616
* Delimiter in the disallowed strings which needs to be wrapped with zero with character.
1717
*/
18-
const COMMENT_DELIMITER = /(<|>)/;
18+
const COMMENT_DELIMITER = /(<|>)/g;
1919
const COMMENT_DELIMITER_ESCAPED = '\u200B$1\u200B';
2020

2121
/**

0 commit comments

Comments
 (0)