csscomb / csscomb.js

CSS coding style formatter
http://csscomb.com/
MIT License
3.28k stars 459 forks source link

CSSComb 4.2.0 hangs on nth-child whitespace #569

Closed gggritso closed 5 years ago

gggritso commented 6 years ago

Heya! I ran into a really strange CSSComb issue recently. Given the file test.scss like this:

.e:nth-child( n+1) {
  color: red;
}

running csscomb test.scss hangs completely. Activity Monitor shows a node process eating up 100% memory. A whitespace change to

.e:nth-child(n+1) {
  color: red;
}

fixes the issue. I've tried clearing my CSSComb settings, but that didn't seem to help.

Is there a really weird crash in CSSComb, or is there something really weird on my computer?

jdalton commented 5 years ago

Hi @gggritso!

I can't reproduce on v4.3.0 🎉