mirror of https://github.com/vuejs/core.git
chore(server-renderer): avoid using `s` regex flag (#11048)
for TS 5.5 compat
This commit is contained in:
parent
519aa1ae68
commit
f94568b2b7
|
@ -108,7 +108,7 @@ export function ssrRenderSlotInner(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const commentTestRE = /^<!--.*-->$/s
|
const commentTestRE = /^<!--[\s\S]*-->$/
|
||||||
const commentRE = /<!--[^]*?-->/gm
|
const commentRE = /<!--[^]*?-->/gm
|
||||||
function isComment(item: SSRBufferItem) {
|
function isComment(item: SSRBufferItem) {
|
||||||
if (typeof item !== 'string' || !commentTestRE.test(item)) return false
|
if (typeof item !== 'string' || !commentTestRE.test(item)) return false
|
||||||
|
|
Loading…
Reference in New Issue