From 6e90ceadea7b65269d0e52adc2b611931aa67483 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Wed, 11 Oct 2017 16:09:35 -0700 Subject: [PATCH] Use re-seq rather than re-find. --- src/clj/com/rpl/specter/navs.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clj/com/rpl/specter/navs.cljc b/src/clj/com/rpl/specter/navs.cljc index f55524c..a9c83a3 100644 --- a/src/clj/com/rpl/specter/navs.cljc +++ b/src/clj/com/rpl/specter/navs.cljc @@ -622,12 +622,12 @@ (do-keypath-transform vals structure key next-fn) )) -(defrichnav ^{:doc "Navigates to the regex applied to a string, navigating to nil if it does not exist or nothing is found."} +(defrichnav ^{:doc "Navigates to the lazy sequence of successive matches when a regex is applied to a string, navigating to nil if it does not exist or nothing is found."} ;; Setting the value to NONE will remove it from the collection.} regex* [re] (select* [this vals structure next-fn] - (next-fn vals (re-find re structure))) + (next-fn vals (re-seq re structure))) #_(transform* [this vals structure next-fn] (next-fn (clojure.string/replace structure re vals))))