Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Conversation

davidtheclark
Copy link
Contributor

@jfurrow A follow-up to the last PR. Vendor-prefixed pseudo selectors and other weird ones were still causing problems, so I tried to take a very systematic approach.

@davidtheclark davidtheclark requested a review from jfurrow August 18, 2017 20:17
'::[a-zA-Z-]+\\b',
// Remove single-colon pseudo-elements and banished pseudo-classes.
`:(${earlyPseudoElements.concat(pseudoClassBlacklist).join('|')})\\b`
];
Copy link

@jfurrow jfurrow Aug 18, 2017

Choose a reason for hiding this comment

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

This is a really nice way of creating a massive regexp that's actually legible. Cool!

Copy link

@jfurrow jfurrow left a comment

Choose a reason for hiding this comment

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

Tests passing, code looks good ✅

@davidtheclark davidtheclark merged commit b03563a into master Aug 19, 2017
@davidtheclark davidtheclark deleted the more-pseudo-selector-fixes branch August 19, 2017 19:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants