Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix greedy replacement pattern #342

Merged
merged 3 commits into from
May 17, 2024
Merged

Fix greedy replacement pattern #342

merged 3 commits into from
May 17, 2024

Conversation

nimajneb
Copy link
Contributor

The replacement pattern is too greedy and will replace all content until the last occurrence of any style tag in the whole document.

Also adding the /s flag in order to avoid a potential problem in case SSR styles might contain newlines.

See issue #341

nimajneb and others added 3 commits September 15, 2023 15:17
The replacement pattern is too greedy here and will replace all content until the last occurrence of any style tag in the whole document.
Copy link
Collaborator

@machour machour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@machour machour merged commit ae0bc39 into remix-run:main May 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants