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

CSS Extras: Optimized class and id patterns #2359

Merged

Conversation

RunDevelopment
Copy link
Member

The class and id pattern both contained : characters which can never be matched. The . character in id can also never be matched. The . character in class can be matched and this actually leads to a bug where adjacent classes were tokenized as one class.

For those wondering: This has been part of Prism for almost 7 years now.

@RunDevelopment RunDevelopment merged commit fdbc447 into PrismJS:master May 18, 2020
@RunDevelopment RunDevelopment deleted the css-extras-optimized-patterns branch May 18, 2020 23:52
quentinvernot pushed a commit to TankerHQ/prismjs that referenced this pull request Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant