Skip to content

Commit 0750914

Browse files
committed
fix point parsing
1 parent 936b4d5 commit 0750914

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/attribute/utils.cljs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@
3535
[points]
3636
(as-> points p
3737
(str/triml p)
38-
(str/split p #"\s+")
38+
(str/split p #"\s*[\s,]\s*")
3939
(partition 2 p)
4040
(vec p))) ; OPTIMIZE
4141

4242
(defn points->px
4343
[points]
4444
(as-> points p
4545
(str/triml p)
46-
(str/split p #"\s+")
46+
(str/split p #"\s*[\s,]\s*")
4747
(map units/unit->px p)
4848
(partition 2 p)
4949
(vec p)))

0 commit comments

Comments
 (0)