mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 23:26:11 +02:00
🐛 Fix internal error on imported svgs
This commit is contained in:
parent
3df2b80427
commit
2e549b164f
1 changed files with 2 additions and 1 deletions
|
@ -46,4 +46,5 @@
|
||||||
(defn camelize
|
(defn camelize
|
||||||
[str]
|
[str]
|
||||||
;; str.replace(":", "-").replace(/-./g, x=>x[1].toUpperCase())
|
;; str.replace(":", "-").replace(/-./g, x=>x[1].toUpperCase())
|
||||||
(js* "~{}.replace(\":\", \"-\").replace(/-./g, x=>x[1].toUpperCase())", str))
|
(when (not (nil? str))
|
||||||
|
(js* "~{}.replace(\":\", \"-\").replace(/-./g, x=>x[1].toUpperCase())", str)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue