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

Test: Added test for nice token names #1911

Merged
merged 2 commits into from
Sep 3, 2019

Conversation

RunDevelopment
Copy link
Member

This adds a test for nice token names. (This also affects aliases.)

Token names and aliases are used as CSS class names and as such should play nicely with CSS.
The new test matches all names against a strict name pattern to identify unsuitable names.

@RunDevelopment
Copy link
Member Author

TIL that this check might actually be necessary because of the ES6 spec on property enumeration.

Here's a good article with some examples on this topic.

@RunDevelopment RunDevelopment merged commit 3fda5c9 into PrismJS:master Sep 3, 2019
@RunDevelopment RunDevelopment deleted the nice-name-test branch September 3, 2019 10:50
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

2 participants