Skip to content

Commit 313ea83

Browse files
author
Sepand Parhami
authored
Change to use parseFloat for IE. (#17)
IE does not support `parseFloat` on `Number`.
1 parent ffe3bc3 commit 313ea83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/object-position.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function extractNumber(str: string, units: string): number {
1616
// Remove any spaces between a minus sign and the number.
1717
const numberString = numberWithSign.replace(' ', '');
1818
// Parse the number, which will ignore the trailing units.
19-
return Number.parseFloat(numberString);
19+
return parseFloat(numberString);
2020
}
2121

2222
/**

0 commit comments

Comments
 (0)