Skip to content

Commit

Permalink
fix(vscode): color preview with !important
Browse files Browse the repository at this point in the history
  • Loading branch information
varugasu committed Jun 23, 2023
1 parent 06f3f09 commit bc14b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export async function getPrettiedMarkdown(uno: UnoGenerator, util: string) {
}

function getCssVariables(code: string) {
const regex = /(?<key>--\S+?):\s*(?<value>.+?);/gm
const regex = /(?<key>--\S+?):\s*(?<value>.+?).*[!]{0,1}.*;/gm
const cssVariables = new Map<string, string>()
for (const match of code.matchAll(regex)) {
const key = match.groups?.key
Expand Down

0 comments on commit bc14b20

Please sign in to comment.