Skip to content

Commit 5a61eb7

Browse files
committed
fix sanitization alert
Signed-off-by: flakey5 <[email protected]>
1 parent 1444056 commit 5a61eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generators/legacy-json/utils/buildSection.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function parseListItem(child) {
255255
child.children.filter(node => node.type !== 'list')
256256
)
257257
.replace(/\s+/g, ' ')
258-
.replace(/<!--.*?-->/gs, '');
258+
.replaceAll(/<!--.*?-->/gs, '');
259259

260260
if (!current.textRaw) {
261261
throw new Error(`empty list item: ${JSON.stringify(child)}`);

0 commit comments

Comments
 (0)