Skip to content

Commit 354ae26

Browse files
gabrieljablonskidanielbarion
authored andcommitted
refactor: css time to ms regex
1 parent ab8ccda commit 354ae26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/css-time-to-ms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const cssTimeToMs = (time: string): number => {
2-
const match = time.match(/^([\d.]+)(ms|s)$/)
2+
const match = time.match(/^([\d.]+)(m?s)$/)
33
if (!match) {
44
return 0
55
}

0 commit comments

Comments
 (0)