You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stitches example uses a Regexp pattern to replace the style tag in SSR with the actual server side rendered styles.
However, the pattern used to do this is too greedy. I just had an example in which I have multiple additional style tags also in the the whole document body, which got all replaced until the last closing style tag.
By replacing .* with .*? I believe this issue should be fixed.
Additionally, also matching newlines by using the /s flag might avoid another issue in case the SSR stylesheet contains newlines, though I am unsure how much of an edge case this is.
The text was updated successfully, but these errors were encountered:
Hi!
The stitches example uses a Regexp pattern to replace the style tag in SSR with the actual server side rendered styles.
However, the pattern used to do this is too greedy. I just had an example in which I have multiple additional style tags also in the the whole document body, which got all replaced until the last closing style tag.
By replacing
.*
with.*?
I believe this issue should be fixed.Additionally, also matching newlines by using the /s flag might avoid another issue in case the SSR stylesheet contains newlines, though I am unsure how much of an edge case this is.
The text was updated successfully, but these errors were encountered: