tailwindcss/packages
Robin Malfait 52325a8cf8
Only compile arbitrary values ending in ] (#15503)
This PR ensures that if you are using an arbitrary value such as
`bg-[red` that it only compiles if it's a properly closed arbitrary
value.

Currently what happens is that it assumes the `]` is there, and cuts it
off. This then results in the `bg-[red` to be compiled as:

```css
.bg-\[red {
  background-color: re;
}
```

Note how the `d` in `red` is cut off. That's the assumption that the `]`
is there.

This PR fixes that by ensuring that the arbitrary value is properly
closed.

Fixes: #15484
2025-01-06 12:00:36 +01:00
..
@tailwindcss-cli Prepare v4.0.0-beta.8 release (#15418) 2024-12-17 13:31:28 +01:00
@tailwindcss-node Update jiti 2.4.0 → 2.4.2 (patch) (#15491) 2025-01-06 11:42:53 +01:00
@tailwindcss-postcss Move --container-prose to --max-width-prose (#15439) 2024-12-18 20:15:37 -05:00
@tailwindcss-standalone Update @types/bun 1.1.13 → 1.1.14 (patch) (#15451) 2024-12-19 16:19:58 +01:00
@tailwindcss-upgrade Prepare v4.0.0-beta.8 release (#15418) 2024-12-17 13:31:28 +01:00
@tailwindcss-vite Prepare v4.0.0-beta.8 release (#15418) 2024-12-17 13:31:28 +01:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Only compile arbitrary values ending in ] (#15503) 2025-01-06 12:00:36 +01:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00