Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

By matching anything after the custom selector we avoid a potential p… #17

Merged
merged 2 commits into from
Jun 3, 2015

Conversation

jaredadobe
Copy link
Contributor

…roblem with commas. We should trust postcss to not give us multiple selectors in its array

This just simply avoids the check for , on the last part of the regex. Postcss takes care of splitting the selectors so we shouldn't worry.

I attempted a better solution, as this regex will reject some valid selectors the use of \w ignores unicode for example. This solution just ended up in a rabbit hole of regex as well. I think its better to land this patch then rewrite this to use the postcss-css ast when it lands.

…roblem with commas. We should trust postcss to not give us multiple selectors in its array
@yisibl
Copy link
Contributor

yisibl commented Jun 3, 2015

Thanks! 👻

yisibl added a commit that referenced this pull request Jun 3, 2015
By matching anything after the custom selector we avoid a potential p…
@yisibl yisibl merged commit 980afc6 into csstools:master Jun 3, 2015
@MoOx
Copy link
Contributor

MoOx commented Jun 3, 2015

@yisibl can you release this patch ?

@yisibl
Copy link
Contributor

yisibl commented Jun 3, 2015

I need to add more test cases.

@MoOx
Copy link
Contributor

MoOx commented Jun 3, 2015

This is better than nothing for now. You can just release something later if you fix other issues. Move fast, break things ^^

@yisibl
Copy link
Contributor

yisibl commented Jun 3, 2015

Done!

@jaredadobe
Copy link
Contributor Author

If you want more test cases let me know. I can throw a suite together tomorrow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants