jesseditson / jss

A styleguide generator based on kss (https://github.com/kneath/kss), but built in node.js
25 stars 8 forks source link

Parser doesn't handle hyphenated class names #3

Closed tranzfuse closed 11 years ago

tranzfuse commented 12 years ago

In the example app I added some additional css classes in buttons.css to test how the styleguide generator works, and it was splitting the hyphenated class names at the hyphen.

So a comment in the CSS file like:

.button-test - A test button

Becomes the following in the output styleguide:

.button - test

Where test is considered the description and "A test button" is lost.

jesseditson commented 11 years ago

Fixed by @kakt00c - thanks!