You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using calc function then I noticed my tailwind intellisense stopped working. I've checked my class regex settings, then noticed something. tv\\(([^)]*)\\)
Basically this regex matches inside tv(...), but if you use an arbitrary value that includes ), then it will break the regex.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I was using calc function then I noticed my tailwind intellisense stopped working. I've checked my class regex settings, then noticed something.
tv\\(([^)]*)\\)
Basically this regex matches inside
tv(...)
, but if you use an arbitrary value that includes)
, then it will break the regex.Here is the code that breaks instellisense;
My current solution
Instead of using
)
in the negated char set, we could use;
char like this;tv\\(([^;]*)\\)
It works as expected.
Beta Was this translation helpful? Give feedback.
All reactions