From 8d4c591f9655f383ecb20c61ffa9cf8a1a0d6368 Mon Sep 17 00:00:00 2001 From: Unknown Date: Sun, 28 Oct 2018 16:21:03 +0900 Subject: [PATCH] Use ensure-slash at compilation --- modules/reitit-core/src/reitit/core.cljc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/reitit-core/src/reitit/core.cljc b/modules/reitit-core/src/reitit/core.cljc index 0bdeb7ab..53ba7657 100644 --- a/modules/reitit-core/src/reitit/core.cljc +++ b/modules/reitit-core/src/reitit/core.cljc @@ -55,7 +55,9 @@ [maybe-arg (rest args)]) macc (into macc (expand data opts)) child-routes (walk-many (str pacc path) macc (keep identity childs))] - (if (seq childs) (seq child-routes) [[(str pacc path) macc]])))))] + (if (seq childs) + (seq child-routes) + [[(str pacc (ensure-slash path)) macc]])))))] (walk-one path (mapv identity data) raw-routes))) (defn map-data [f routes]