Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Apr 25, 2024
1 parent 92a8013 commit ee37b1a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/preset-legacy-compat/src/comma-color.ts
@@ -1,5 +1,4 @@
export function toCommaStyleColorFunction(str: string) {
// rgba(1, 1, 1, var(--un-bg-opacity))
return str.replace(/(rgb|hsl)a?\(([^)]+)\)/g, (_, fn: string, v: string) => {
const [rgb, alpha] = v.split(/\//g).map(i => i.trim())
if (alpha && !fn.endsWith('a'))
Expand Down

0 comments on commit ee37b1a

Please sign in to comment.