From a33e0a386e06b2fe1565b626b48f2e17077a25ec Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Mon, 4 Nov 2024 13:43:38 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8FEnsure=20collection=20return?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/app/common/types/tokens_lib.cljc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index aac99c0e9..61ab00160 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -147,10 +147,11 @@ Token references are strings delimited by curly braces. E.g.: {foo.bar.baz} -> foo.bar.baz" [token-value] - (when (string? token-value) + (if (string? token-value) (some->> (re-seq #"\{([^}]*)\}" token-value) (map second) - (into #{})))) + (into #{})) + #{})) (defn token-value-self-reference? "Check if the token is self referencing with its `token-name` in `token-value`.