Skip to content

Conversation

@thecrypticace
Copy link
Contributor

This should now properly extract classes with arbitrary values when in an array and also when they occur at the end of a string with escaped quotes.

Basically these all work now:

["text-[10px]", "lg:text-[14px]"]
['text-[10px]', 'lg:text-[14px]']
[`text-[10px]`, `lg:text-[14px]`]
{"code": "<div class=\"text-sm lg:text-lg\">"}

@thecrypticace thecrypticace changed the title Pull default extractor into separate file Properly extract classes with arbitrary values in arrays and classes followed by escaped quotes Dec 17, 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

Successfully merging this pull request may close these issues.

3 participants