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

docs: Tweak Tailwind CSS Intellisense regex to handle inner brackets #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

longzheng
Copy link

@longzheng longzheng commented Jan 22, 2025

The current Tailwind CSS Intellisense regex doesn't handle inner brackets, for example if I have a value of

clsx([`bg-background focus:shadow-[0_0_15px_0_rgba(0,0,0,0.1)] text-foreground`]);

Then the current regex will stop matching after the rgba(0,0,0,0.1) because of the end bracket. Demo https://regex101.com/r/B35VfZ/1

This updated regex handles inner brackets. Demo https://regex101.com/r/WocUfB/1

@longzheng longzheng changed the title Tweak Tailwind CSS Intellisense regex to handle inner brackets docs: Tweak Tailwind CSS Intellisense regex to handle inner brackets Jan 22, 2025
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.

1 participant