What version of prettier-plugin-tailwindcss are you using?
v0.7.0
What version of Tailwind CSS are you using?
v3.4.17
What version of Node.js are you using?
v22.20.0
What package manager are you using?
NPM
What operating system are you using?
Windows
Reproduction URL
Minimal reproduction
Describe your issue
I was happy to see the new regex feature and immediately wanted to try it out. Unfortunately, after adding a regex option to the .prettierrc.json my code gets partially removed when the regex matches. Stackblitz is also behaving weird now but in VS Code the "custom-class" is matching the regex and the code gets merged/cut that should only be sorted. Is my regex incorrect?
Thanks in advance!
What version of
prettier-plugin-tailwindcssare you using?v0.7.0
What version of Tailwind CSS are you using?
v3.4.17
What version of Node.js are you using?
v22.20.0
What package manager are you using?
NPM
What operating system are you using?
Windows
Reproduction URL
Minimal reproduction
Describe your issue
I was happy to see the new regex feature and immediately wanted to try it out. Unfortunately, after adding a regex option to the
.prettierrc.jsonmy code gets partially removed when the regex matches. Stackblitz is also behaving weird now but in VS Code the "custom-class" is matching the regex and the code gets merged/cut that should only be sorted. Is my regex incorrect?Thanks in advance!