Skip to content

Commit 93b40d1

Browse files
Mertzenichslipset
authored andcommitted
fix: find-in-text retun value (string -> hzip-loc)
1 parent 9d64cbe commit 93b40d1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/cljc/hickory/select.cljc

+5-3
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,11 @@
288288
selected."
289289
[re]
290290
(fn [hzip-loc]
291-
(some #(re-find re %) (->> (zip/node hzip-loc)
292-
:content
293-
(filter string?)))))
291+
(when (some #(re-find re %)
292+
(->> (zip/node hzip-loc)
293+
:content
294+
(filter string?)))
295+
hzip-loc)))
294296

295297
(defn n-moves-until
296298
"This selector returns a selector function that selects its argument if

0 commit comments

Comments
 (0)