mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
Fix re-find only accepting string values throw
This commit is contained in:
@@ -8,9 +8,10 @@
|
||||
#"^\s*(-?[0-9]+\.?[0-9]*)\s*$")
|
||||
|
||||
(defn parse-token-value [value]
|
||||
(when (string? value)
|
||||
(when-let [double-str (-> (re-find parseable-token-value-regexp value)
|
||||
(last))]
|
||||
(d/parse-double double-str)))
|
||||
(d/parse-double double-str))))
|
||||
|
||||
(defn find-token-references
|
||||
"Finds token reference values in `value-string` and returns a set with all contained namespaces."
|
||||
|
||||
Reference in New Issue
Block a user