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

Fixed an issue where css comment is parsed as a css rule #3

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

barthc
Copy link
Contributor

@barthc barthc commented Mar 20, 2024

Context

⛑️ Ticket(s): https://secure.helpscout.net/conversation/2544175554/63516

Summary

When the character , is used in CSS comment. The CSS comment is parsed as a CSS rule, hence the issue. This PR should fix the issue.

Copy link
Contributor

@claygriffiths claygriffiths left a comment

Choose a reason for hiding this comment

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

LGTM, tested with https://regex101.com/r/g4XBJX/1

CleanShot 2024-03-20 at 15 53 29

The previous regex looks like... https://regex101.com/r/Fg3RA7/1

CleanShot 2024-03-20 at 15 53 47


Squash and merge with

Fixed issue where CSS comments containing a comma would be prefixed incorrectly, which could cause syntax errors in the CSS.

@barthc barthc merged commit 99d43b9 into main Mar 21, 2024
1 check passed
@barthc barthc deleted the barth/fix/63516-css-comment branch March 21, 2024 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants