Skip to content

Commit

Permalink
chore: update tailwindCSS classRegex to handle nested parentheses in …
Browse files Browse the repository at this point in the history
…clsx function
  • Loading branch information
artaommahe committed Jun 23, 2024
1 parent c40042a commit 50266f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
For proper `clsx` IntelliSense in VSCode, add the following to your `settings.json`:

```json
"tailwindCSS.experimental.classRegex": [["clsx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]]
"tailwindCSS.experimental.classRegex": [["clsx\\(((?:[^()]*|\\([^()]*\\))*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]]
```

0 comments on commit 50266f8

Please sign in to comment.