Skip to content

Can the class name pattern regex be adjusted to allow for HAML templates? #31

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

Closed
wnm opened this issue Feb 3, 2021 · 3 comments
Closed

Comments

@wnm
Copy link

wnm commented Feb 3, 2021

Hi there 👋

I was wondering what the reason is for having a dot in the regex to search for class names? Are there tailwind class names that include a dot?

The reason I'm asking is, because this way HAML templates don't work:
https://regex101.com/r/hiAKC7/2

Without dots, it finds all class names for both html and haml templates:
https://regex101.com/r/0JJDKQ/1

Except I'm missing something?

@dhh
Copy link
Member

dhh commented Feb 6, 2021

If you can do a PR with enough tests to verify that everything else is still working, then have at it!

@jumph4x
Copy link

jumph4x commented Feb 15, 2021

Ooooh, this is cool. I'll try to take a stab at it in a little bit.

@wnm
Copy link
Author

wnm commented Feb 16, 2021

I've opened a PR here: #38

@dhh dhh closed this as completed Aug 26, 2021
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

No branches or pull requests

3 participants