Skip to content

Commit fd4ec6f

Browse files
committed
Allow tag multiplier in closing tags
1 parent ffa718e commit fd4ec6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/components/DomExplorer/Pipeline/Pipeline.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ function parseInput(s: string) {
8484
.replace(/<([a-z0-9-]+)\*(\d{1,3})>/g, (all, tag, repeat) => {
8585
return `<${tag}>`.repeat(parseInt(repeat));
8686
})
87+
.replace(/<\/([a-z0-9-]+)\*(\d{1,3})>/g, (all, tag, repeat) => {
88+
return `</${tag}>`.repeat(parseInt(repeat));
89+
})
8790
.replace(/\\u([0-9a-f]{4})/g, (_, hex) =>
8891
String.fromCharCode(parseInt(hex, 16)),
8992
);

0 commit comments

Comments
 (0)