We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d64cbe commit 93b40d1Copy full SHA for 93b40d1
src/cljc/hickory/select.cljc
@@ -288,9 +288,11 @@
288
selected."
289
[re]
290
(fn [hzip-loc]
291
- (some #(re-find re %) (->> (zip/node hzip-loc)
292
- :content
293
- (filter string?)))))
+ (when (some #(re-find re %)
+ (->> (zip/node hzip-loc)
+ :content
294
+ (filter string?)))
295
+ hzip-loc)))
296
297
(defn n-moves-until
298
"This selector returns a selector function that selects its argument if
0 commit comments