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 d2b5d5b commit 23479d1Copy full SHA for 23479d1
packages/tailwindcss/src/theme.ts
@@ -1,8 +1,6 @@
1
import type { AtRule } from './ast'
2
import { escape } from './utils/escape'
3
4
-const ESCAPED_STAR_REGEX = /-\\\*$/
5
-
6
export const enum ThemeOptions {
7
NONE = 0,
8
INLINE = 1 << 0,
@@ -43,7 +41,9 @@ export class Theme {
43
41
) {}
44
42
45
add(key: string, value: string, options = ThemeOptions.NONE): void {
46
- key = key.replace(ESCAPED_STAR_REGEX, '-*')
+ if (key.endsWith('\\*')) {
+ key = key.slice(0, -2) + '*'
+ }
47
48
if (key.endsWith('-*')) {
49
if (value !== 'initial') {
0 commit comments