mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
Fix re-find only accepting string values throw
This commit is contained in:
parent
2e8e33d701
commit
37f23855e8
1 changed files with 4 additions and 3 deletions
|
@ -8,9 +8,10 @@
|
|||
#"^\s*(-?[0-9]+\.?[0-9]*)\s*$")
|
||||
|
||||
(defn parse-token-value [value]
|
||||
(when-let [double-str (-> (re-find parseable-token-value-regexp value)
|
||||
(last))]
|
||||
(d/parse-double double-str)))
|
||||
(when (string? value)
|
||||
(when-let [double-str (-> (re-find parseable-token-value-regexp value)
|
||||
(last))]
|
||||
(d/parse-double double-str))))
|
||||
|
||||
(defn find-token-references
|
||||
"Finds token reference values in `value-string` and returns a set with all contained namespaces."
|
||||
|
|
Loading…
Add table
Reference in a new issue