Skip to content

Commit

Permalink
chore(server-renderer): avoid using s regex flag (#11048)
Browse files Browse the repository at this point in the history
for TS 5.5 compat
  • Loading branch information
sxzz committed Jun 4, 2024
1 parent 519aa1a commit f94568b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server-renderer/src/helpers/ssrRenderSlot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f94568b

Please sign in to comment.