Skip to content

Commit

Permalink
fix: find-in-text retun value (string -> hzip-loc)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mertzenich committed Mar 9, 2024
1 parent dc9b006 commit d5fea4b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/cljc/hickory/select.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,11 @@
selected."
[re]
(fn [hzip-loc]
(some #(re-find re %) (->> (zip/node hzip-loc)
:content
(filter string?)))))
(when (some #(re-find re %)
(->> (zip/node hzip-loc)
:content
(filter string?)))
hzip-loc)))

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

0 comments on commit d5fea4b

Please sign in to comment.