Skip to content

Commit f11182c

Browse files
committed
fix(preset-mini): fix unit regex
1 parent 4ec91f6 commit f11182c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/preset-mini/src/utils/handlers/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function time(str: string) {
7878
if (isNaN(duration))
7979
return
8080

81-
if (/ms|s$/.test(str))
81+
if (/(s|ms)$/.test(str))
8282
return str
8383

8484
return `${str}ms`

0 commit comments

Comments
 (0)