From 5f25bd8a7bf46175a97dd3976f129d519f0560a1 Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Fri, 21 Jun 2024 19:41:04 +0200 Subject: [PATCH] Add comments --- .../src/app/main/ui/workspace/tokens/style_dictionary.cljs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs index 0d9560bbe9..b81d431217 100644 --- a/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs +++ b/frontend/src/app/main/ui/workspace/tokens/style_dictionary.cljs @@ -32,7 +32,11 @@ (comment (find-token-references "{foo} + {bar}") - (find-token-references "nothing") + ;; => #{"foo" "bar"} + (find-token-references "{foo.bar.baz} + something") + ;; => #{"foo.bar.baz"} + (find-token-references "1 + 2") + ;; => nil nil) (defn token-self-reference? [token-name reference-string]