This commit is contained in:
seve12 2025-10-06 16:34:49 +03:00
parent 836226a8d3
commit ab4e2d1ed6
2 changed files with 17 additions and 57 deletions

View file

@ -116,8 +116,8 @@ BlazeComponent.extendComponent({
].join('|');
const badPatterns = new RegExp(
`(?:${[
`<(${badTags})\s*[^>][\s\S]*?<\/\1>`,
`<(${badTags})[^>]*?\/>`,
`<(${badTags})\\s*[^>][\\s\\S]*?<\\/\\1>`,
`<(${badTags})[^>]*?\\/>`,
].join('|')})`,
'gi',
);