File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { type AtRule } from './ast'
2
- import { escape } from './utils/escape'
2
+ import { escape , unescape } from './utils/escape'
3
3
4
4
export const enum ThemeOptions {
5
5
NONE = 0 ,
@@ -107,7 +107,8 @@ export class Theme {
107
107
}
108
108
109
109
getOptions ( key : string ) {
110
- return this . values . get ( this . #unprefixKey( key ) ) ?. options ?? ThemeOptions . NONE
110
+ key = unescape ( this . #unprefixKey( key ) )
111
+ return this . values . get ( key ) ?. options ?? ThemeOptions . NONE
111
112
}
112
113
113
114
entries ( ) {
@@ -182,7 +183,8 @@ export class Theme {
182
183
}
183
184
184
185
markUsedVariable ( themeKey : string ) {
185
- let value = this . values . get ( this . #unprefixKey( themeKey ) )
186
+ let key = unescape ( this . #unprefixKey( themeKey ) )
187
+ let value = this . values . get ( key )
186
188
if ( ! value ) return false // Unknown variable
187
189
if ( value . options & ThemeOptions . USED ) return false // Variable already used
188
190
You can’t perform that action at this time.
0 commit comments