From ad98bfddb09c6be641ff6755bb8caefc50f1636d Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sun, 19 Oct 2025 18:12:40 +0300 Subject: #3: Fixes an issue where if the attribute value contained forward slashes, it would break the attribute parsing. --- test/dompa/coordinates_test.cljc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/dompa/coordinates_test.cljc') diff --git a/test/dompa/coordinates_test.cljc b/test/dompa/coordinates_test.cljc index 79248e3..1a69114 100644 --- a/test/dompa/coordinates_test.cljc +++ b/test/dompa/coordinates_test.cljc @@ -115,6 +115,16 @@ coordinates/compose coordinates/unify coordinates/->nodes)))) + + (testing "Parse attributes with forward slashes in them" + (is (= [{:node/name :meta, + :node/attrs {:name "route-pattern", + :content "/:user_id/:repository", + :data-turbo-transient true}}] + (-> "" + coordinates/compose + coordinates/unify + coordinates/->nodes)))) (testing "Create nodes with attributes" (is (= [{:node/name :div -- cgit v1.2.3