Skip to content
This repository was archived by the owner on Mar 28, 2018. It is now read-only.

Commit 6385efc

Browse files
committed
Handle pt
1 parent 007d23b commit 6385efc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const convert = value => {
2222
raw = parseFloat(value, 10)
2323

2424
if (value.match(/px$/)) return raw
25+
if (value.match(/pt$/)) return raw
2526
if (value.match(/em$/)) return raw * 16
2627
if (value.match(/%$/)) return raw * .16
2728

0 commit comments

Comments
 (0)