diff options
Diffstat (limited to 'src/ruuter')
| -rw-r--r-- | src/ruuter/core.cljc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ruuter/core.cljc b/src/ruuter/core.cljc index 0da46b6..8052d36 100644 --- a/src/ruuter/core.cljc +++ b/src/ruuter/core.cljc @@ -24,8 +24,7 @@ :else ; what comes around, goes around %)) - (string/join "\\/") - (re-pattern)))) + (string/join "\\/")))) (defn- path+uri->path-params @@ -62,7 +61,7 @@ (let [route (->> routes (filter #(not (= :not-found (:path %)))) (map #(merge % {:regex-path (path->regex-path (:path %))})) - (filter #(and (re-matches (:regex-path %) uri) + (filter #(and (re-matches (re-pattern (:regex-path %)) uri) (= (:method %) request-method))) first)] (when route |
