Skip to content

Commit

Permalink
fix(preset-mini): env may not always output numbers (#3264)
Browse files Browse the repository at this point in the history
  • Loading branch information
chu121su12 committed Oct 24, 2023
1 parent 8893f31 commit d4e3fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-mini/src/_utils/mappings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@ export const globalKeywords = [
'unset',
]

export const cssMathFnRE = /^(?:calc|env|clamp|min|max)\(.*\)/
export const cssMathFnRE = /^(?:calc|clamp|min|max)\s*\(.*\)/

0 comments on commit d4e3fad

Please sign in to comment.