mirror of
https://github.com/primer/css.git
synced 2024-12-02 07:53:06 +03:00
Default to variable name when parsing vars
This commit is contained in:
parent
a3fb1f7787
commit
9a3675457e
@ -73,7 +73,7 @@ function parseSCSSVariables(scssString, variables = {}) {
|
||||
if (match) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const [_, name, value] = match
|
||||
variables[name] = value.startsWith('$') ? variables[value.substr(1)] : value
|
||||
variables[name] = value.startsWith('$') ? variables[value.substr(1)] || value : value
|
||||
}
|
||||
} while (match)
|
||||
return variables
|
||||
|
Loading…
Reference in New Issue
Block a user