Skip to content

Commit f94568b

Browse files
authored
chore(server-renderer): avoid using s regex flag (#11048)
for TS 5.5 compat
1 parent 519aa1a commit f94568b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/server-renderer/src/helpers/ssrRenderSlot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function ssrRenderSlotInner(
108108
}
109109
}
110110

111-
const commentTestRE = /^<!--.*-->$/s
111+
const commentTestRE = /^<!--[\s\S]*-->$/
112112
const commentRE = /<!--[^]*?-->/gm
113113
function isComment(item: SSRBufferItem) {
114114
if (typeof item !== 'string' || !commentTestRE.test(item)) return false

0 commit comments

Comments
 (0)