Skip to content

Commit

Permalink
chore: fix reg
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed May 23, 2022
1 parent 78f8c4b commit f01d14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-mini/src/utils/handlers/handlers.ts
Expand Up @@ -97,7 +97,7 @@ function bracketWithType(str: string, type?: string) {
if (str && str.startsWith('[') && str.endsWith(']')) {
let base: string | undefined

const match = str.match(new RegExp(`^\\[\(${type}\):`, 'i'))
const match = str.match(/^\[(color|length|position):/i)
if (!match)
base = str.slice(1, -1)
else if (type && match[1] === type)
Expand Down

0 comments on commit f01d14f

Please sign in to comment.