From 840a736b27acf3ee922cab34a2e4f1dfad2b795c Mon Sep 17 00:00:00 2001 From: Olim Saidov Date: Wed, 7 Oct 2020 15:41:23 +0500 Subject: [PATCH] Fix regexp? already refers to cljs.core/regexp? --- src/route_map/core.cljc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/route_map/core.cljc b/src/route_map/core.cljc index d0cbc83..2bfd834 100644 --- a/src/route_map/core.cljc +++ b/src/route_map/core.cljc @@ -29,10 +29,10 @@ []) first))) -(defn regexp? - [x] - #?(:cljs (cljs.core/regexp? x) - :clj (instance? java.util.regex.Pattern x))) +#?(:clj + (defn regexp? + [x] + (instance? java.util.regex.Pattern x))) (defn -match [acc node [x & rpth :as pth] params parents wgt] (if (empty? pth)