From 50266f8ded4307f78c6e82bb3f94b40114581ea8 Mon Sep 17 00:00:00 2001 From: Popov Max Date: Sun, 23 Jun 2024 17:02:57 +0200 Subject: [PATCH] chore: update tailwindCSS classRegex to handle nested parentheses in clsx function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 12a1073..29119d7 100644 --- a/README.md +++ b/README.md @@ -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\\(((?:[^()]*|\\([^()]*\\))*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]] ```