Skip to content
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

Bug: class names not extracted correctly from class attribute #72

Closed
fiznool opened this issue Feb 11, 2020 · 2 comments
Closed

Bug: class names not extracted correctly from class attribute #72

fiznool opened this issue Feb 11, 2020 · 2 comments
Assignees
Labels
type: bug Functionality that does not work as intended/expected

Comments

@fiznool
Copy link

fiznool commented Feb 11, 2020

Info

Tool Version
Plugin v1.1.6
Prettier v1.19.1
Node v12.15.0
OS mac

Input

div(class="bg-red-100 border-l-4 border-red-600 text-red-700 p-4 mb-4")

Output or Error

.bg-red-100(.border-l-4.border-red-600.text-red-700.p-4.mb-4)

Expected Output

.bg-red-100.border-l-4.border-red-600.text-red-700.p-4.mb-4

Additional Context

As you can see, everything but the first class is wrapped inside parenthesis, which causes the class names not to be applied.

@fiznool fiznool changed the title Bug: Bug: class names not extracted correctly from class attribute Feb 11, 2020
@Shinigami92 Shinigami92 self-assigned this Feb 11, 2020
@Shinigami92 Shinigami92 added the type: bug Functionality that does not work as intended/expected label Feb 11, 2020
@Shinigami92
Copy link
Member

Thanks, I thought I had written tests for this case 🤔
I had an internal refactor and maybe this influenced this
Anyway, fixed in 1.1.7

7bbc423

@fiznool
Copy link
Author

fiznool commented Feb 11, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

2 participants