mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 22:27:16 +02:00
✨ Allows paste plain text into worskpace
This commit is contained in:
parent
bd31e5742f
commit
a227a0fe21
2 changed files with 78 additions and 12 deletions
|
@ -94,3 +94,10 @@
|
|||
(t/write w data))
|
||||
(catch :default e
|
||||
(throw e))))
|
||||
|
||||
(defn transit?
|
||||
"Checks if a string can be decoded with transit"
|
||||
[str]
|
||||
(try
|
||||
(-> str decode nil? not)
|
||||
(catch js/SyntaxError e false)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue