Commit 2c4dc74
authored
fix: escape backslash when processing component's css (#11425)
The `.w-\[100px\]` selector is a valid CSS class. However, when processed by the tools package, it is incorrectly saved as `.w-[100px]`, making it an invalid selector.
With this PR, when a backslash is encountered during processing inside a CSS file, it is properly escaped before being saved to the new file.
Fixes: #114131 parent 4d50eb7 commit 2c4dc74
File tree
1 file changed
+2
-1
lines changed- packages/tools/lib/css-processors
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments