mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
♻️Ensure collection return
This commit is contained in:
@@ -147,10 +147,11 @@
|
|||||||
Token references are strings delimited by curly braces.
|
Token references are strings delimited by curly braces.
|
||||||
E.g.: {foo.bar.baz} -> foo.bar.baz"
|
E.g.: {foo.bar.baz} -> foo.bar.baz"
|
||||||
[token-value]
|
[token-value]
|
||||||
(when (string? token-value)
|
(if (string? token-value)
|
||||||
(some->> (re-seq #"\{([^}]*)\}" token-value)
|
(some->> (re-seq #"\{([^}]*)\}" token-value)
|
||||||
(map second)
|
(map second)
|
||||||
(into #{}))))
|
(into #{}))
|
||||||
|
#{}))
|
||||||
|
|
||||||
(defn token-value-self-reference?
|
(defn token-value-self-reference?
|
||||||
"Check if the token is self referencing with its `token-name` in `token-value`.
|
"Check if the token is self referencing with its `token-name` in `token-value`.
|
||||||
|
|||||||
Reference in New Issue
Block a user