Fix and improve implementation#50
Conversation
3480fa1 to
6c51135
Compare
6c51135 to
531b367
Compare
|
Oh, that’s embarrassing! 🫣 Thanks for fixing that typo, too. Since Tailwind 4 was just released, I will need to do a version bump to support it—and this patch will be included when that’s ready. Thank you very much for your contribution. 🙇🏻 |
|
@gjtorikian This pull request has a slightly large diff. I'm looking forward to this Gem supporting Tailwind 4, thank you!! |
|
Yes, I suppose you’re right. Maybe people will use Tailwind 3 for a long time and will want these updates separate from Tailwind 4. 🤔 |
|
I haven't investigated deeply, but glancing over the upgrade guide it looks like you might be able to support v3 and v4 at the same time. Otherwise, maybe a configuration option and separate parsers for v3 and v4 would make sense? |
The existing implementation contains JavaScript syntax.
It appears to be miraculously working without issues because the JavaScript split syntax is being interpreted as a range in Ruby.
Therefore, I have fixed the implementation.
Additionally, I have improved performance and refactored.