guidomodarelli / sortwind

Sortwind is an opinionated Tailwind CSS class sorter for Visual Studio Code. It enforces consistent ordering of classes by parsing your code and reprinting class tags to follow a given order.
MIT License
4 stars 1 forks source link

Doesn't sort classes with arbitrary values #3

Open SzymonNadbrzezny opened 1 month ago

SzymonNadbrzezny commented 1 month ago

Describe the bug It doesn't sort classes with arbitrary values like h-[50px]

To Reproduce Steps to reproduce the behavior:

  1. Go to add arbitrary value and few other classes
  2. Save
  3. See error

Expected behavior Arbitrary values should be sorter either at the end of it's main class ( h-2 h-4 h-[50px] ) or a the end

SzymonNadbrzezny commented 1 month ago

I noticed that this isn't the marketplace version but pretty sure it still has the same problem (same as headwind)