Replies: 1 comment
-
Just opened an issue https://github.com/tailwindlabs/tailwindcss/issues/13862 so there's no need for duplicate |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there.
We are working with the newest PrimeVue tailwind based components. PrimeVue team provided a bunch of files which can be used to restyle their components, but these are containing quite complex js objects (sample below). We managed to create some regex expressions for the
classRegex
setting.Starting point
Sample file (click me)
Config
Here you can find samples if you wanna try them out:
Problem
'On the paper' it should work. All is fine in https://regex101.com/.
We can see all color indicators (not only in the last 25 stings) for default tailwind colors in classes like
border-gray-500
etc, but intellisense is working differently. Only the last 25 strings from every group filtered with the first regex are providing intellisense.Assumption
This number is somehow to round to be a coincidence, so I assume that it's some internal optimization.
We've tried another approaches but it seems that every array of regex expressions limits its results to last 25 matches. Is there any option for increasing this number or writing a regex which will cover any of the strings separately? Important: it would have to be a string inside of the
class: ['string somewhere here']
otherwise it produces false positives in other places.Beta Was this translation helpful? Give feedback.
All reactions