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

Handle extra whitespace in className #9

Merged
merged 3 commits into from
Oct 26, 2014

Conversation

joshwnj
Copy link
Contributor

@joshwnj joshwnj commented Mar 11, 2014

Browsers don't guarantee a single whitespace between classnames, so without any normalizing or trimming it's possible to end up with selectors like ..some...class.

The getClassNames function intends to always give back an array of valid classnames.

@joshwnj
Copy link
Contributor Author

joshwnj commented Oct 25, 2014

Hi @ericclemmons just wanted to nudge this one and see if we can get it merged :)

@ericclemmons
Copy link
Owner

Man, this is extremely well done. I'm so sorry I missed it.

I have too many projects so it's easy for things to fall through =/

ericclemmons added a commit that referenced this pull request Oct 26, 2014
Handle extra whitespace in className
@ericclemmons ericclemmons merged commit 3bdd29e into ericclemmons:master Oct 26, 2014
@ericclemmons
Copy link
Owner

Thanks again @joshwnj!

npm publish
npm http PUT https://registry.npmjs.org/unique-selector
npm http 201 https://registry.npmjs.org/unique-selector
+ [email protected]

@joshwnj
Copy link
Contributor Author

joshwnj commented Oct 26, 2014

Cheers!

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

Successfully merging this pull request may close these issues.

2 participants