Skip to content

Commit ae0bc39

Browse files
nimajnebmachour
andauthored
Fix greedy replacement pattern (#342)
Co-authored-by: Mehdi Achour <[email protected]>
1 parent b5e8bc6 commit ae0bc39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stitches/app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function handleRequest(
1616
);
1717

1818
markup = markup.replace(
19-
/<style id="stitches">.*<\/style>/g,
19+
/<style id="stitches">.*?<\/style>/gs,
2020
`<style id="stitches">${getCssText()}</style>`,
2121
);
2222

0 commit comments

Comments
 (0)