Skip to content

Commit

Permalink
Fix mixed variables and numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderby committed May 7, 2024
1 parent 0b858e6 commit 916213b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inject/dynamic-theme/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ function isVarDependant(value: string) {
function isConstructedColorVar(value: string) {
return (
value.match(/^\s*(rgb|hsl)a?\(/) ||
value.match(/^(\d{1,3}|(var\([\-_A-Za-z0-9]+\)),?\s*){3}$/)
value.match(/^(((\d{1,3})|(var\([\-_A-Za-z0-9]+\))),?\s*?){3}$/)
);
}

Expand Down

0 comments on commit 916213b

Please sign in to comment.