Skip to content

Commit 543da3f

Browse files
Detect utilities when containing capital letters followed by numbers (#19465)
Fixes #19463
1 parent dbd26b9 commit 543da3f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Do not wrap `color-mix` in a `@supports` rule if one already exists ([#19450](https://github.com/tailwindlabs/tailwindcss/pull/19450))
1313
- Allow whitespace around `@source inline()` argument ([#19461](https://github.com/tailwindlabs/tailwindcss/pull/19461))
1414
- CLI: Emit comment when source maps are saved to files ([#19447](https://github.com/tailwindlabs/tailwindcss/pull/19447))
15+
- Detect utilities when containing capital letters followed by numbers ([#19465](https://github.com/tailwindlabs/tailwindcss/pull/19465))
1516

1617
### Added
1718

crates/oxide/src/extractor/named_utility_machine.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ impl Machine for NamedUtilityMachine<ParsingState> {
284284
| Class::Dot
285285
| Class::Number
286286
| Class::AlphaLower
287+
| Class::AlphaUpper
287288
) {
288289
return self.restart();
289290
}
@@ -425,6 +426,8 @@ mod tests {
425426
// With number followed by dash or underscore
426427
("text-title1-strong", vec!["text-title1-strong"]),
427428
("text-title1_strong", vec!["text-title1_strong"]),
429+
// With capital letter followed by number
430+
("text-titleV1-strong", vec!["text-titleV1-strong"]),
428431
// With trailing % sign
429432
("from-15%", vec!["from-15%"]),
430433
// Arbitrary value with bracket notation

0 commit comments

Comments
 (0)