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 c5f2c56 commit d2b5d5bCopy full SHA for d2b5d5b
packages/tailwindcss/src/theme.ts
@@ -1,6 +1,8 @@
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,
@@ -41,9 +43,7 @@ export class Theme {
41
43
) {}
42
44
45
add(key: string, value: string, options = ThemeOptions.NONE): void {
- if (key.endsWith('-\\*')) {
- key = key.replace(/-\\\*$/, '-*')
46
- }
+ key = key.replace(ESCAPED_STAR_REGEX, '-*')
47
48
if (key.endsWith('-*')) {
49
if (value !== 'initial') {
0 commit comments