-
Notifications
You must be signed in to change notification settings - Fork 46
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
The classRegex doesn't seem to work #179
Comments
Hey @TheCapedBaldi! The version currently available on the VSCode Marketplace is a few versions behind what’s on this repo, and classRegex doesn’t seem to work on that one. v2.0.0 is available in alpha in #122 and might solve your issue! |
Thank you @phacks. I will give it a go at it shortly, and close this ticket once it works 🙏🏻 |
I've tested |
@homerjam In case it helps, here is the "headwind.classRegex": {
"haml": [
{
"regex": "\\.([\\._:a-zA-Z0-9\\-]+)",
"separator": "\\.",
"replacement": "."
},
"\\bclass\\s*:\\s*[\\\"\\']([_a-zA-Z0-9\\s\\-\\:\\/]+)[\\\"\\']"
],
}, |
Thanks, perhaps I'm using it wrong. Is this inside package.json? |
Oh—it’s inside VSCode’s settings, not your |
Describe the bug
I'm trying to modify the regex so that the sorting works outside of
className=...
. For example, I want to modify the following regex:so that the sorting can work for situations like this:
However, it's unable to sort it
The text was updated successfully, but these errors were encountered: