We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0ec12 commit d481d5bCopy full SHA for d481d5b
packages/tailwindcss/src/utils/math-operators.ts
@@ -1,5 +1,7 @@
1
const LOWER_A = 0x61
2
const LOWER_Z = 0x7a
3
+const UPPER_A = 0x41
4
+const UPPER_Z = 0x5a
5
const LOWER_E = 0x65
6
const UPPER_E = 0x45
7
const ZERO = 0x30
@@ -63,7 +65,12 @@ export function addWhitespaceAroundMathOperators(input: string) {
63
65
64
66
// If we saw a number before, and we see normal a-z character, then we
67
// assume this is a value such as `123px`
- else if (valuePos !== null && ((char >= LOWER_A && char <= LOWER_Z) || char === PERCENT)) {
68
+ else if (
69
+ valuePos !== null &&
70
+ (char === PERCENT ||
71
+ (char >= LOWER_A && char <= LOWER_Z) ||
72
+ (char >= UPPER_A && char <= UPPER_Z))
73
+ ) {
74
valuePos = i
75
}
76
0 commit comments