chore(server-renderer): avoid using `s` regex flag (#11048)

for TS 5.5 compat
This commit is contained in:
Kevin Deng 三咲智子 2024-06-04 20:12:43 +08:00 committed by GitHub
parent 519aa1ae68
commit f94568b2b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ export function ssrRenderSlotInner(
}
}
const commentTestRE = /^<!--.*-->$/s
const commentTestRE = /^<!--[\s\S]*-->$/
const commentRE = /<!--[^]*?-->/gm
function isComment(item: SSRBufferItem) {
if (typeof item !== 'string' || !commentTestRE.test(item)) return false