Do not use cljs.string/replace-all, it's private

The 1.10.439 release of compiler complains about it. Fixes #169.
This commit is contained in:
Miikka Koskinen 2018-11-08 10:00:23 +02:00
parent 010211f7ec
commit 65886c190f
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@
;; TODO: is this correct?
(defn- re-quote [x]
#?(:clj (Pattern/quote x)
:cljs (str/replace-all x #"([.?*+^$[\\]\\\\(){}|-])" "\\$1")))
:cljs (str/replace x #"([.?*+^$[\\]\\\\(){}|-])" "\\$1")))
(defn- path-regex [{:keys [path-parts path-constraints] :as route}]
(let [[pp & pps] path-parts

View file

@ -55,7 +55,7 @@
"modules/reitit-sieppari/src"]
:dependencies [[org.clojure/clojure "1.9.0"]
[org.clojure/clojurescript "1.10.339"]
[org.clojure/clojurescript "1.10.439"]
;; modules dependencies
[metosin/reitit]