From b1b54a4b3fd4ac5a8923aa5913976a8410bbb5c3 Mon Sep 17 00:00:00 2001 From: juerg Date: Sun, 14 Jan 2024 21:09:42 +0100 Subject: [PATCH] fixed :grep module to work on windows --- src/main/resources/com/github/jlangch/venice/grep.venice | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/com/github/jlangch/venice/grep.venice b/src/main/resources/com/github/jlangch/venice/grep.venice index 2567ab197..063733c0e 100644 --- a/src/main/resources/com/github/jlangch/venice/grep.venice +++ b/src/main/resources/com/github/jlangch/venice/grep.venice @@ -139,7 +139,7 @@ (defn- grep-in-dir [dir file-glob line-regex] ;; return a list of tuples [filename line-no matched-line] (->> (io/list-files-glob dir file-glob) - (map (fn [f] (named-file. (strip-leading-dir f dir) f))) + (map (fn [f] (named-file. (io/file-name f) f))) (grep-in-files line-regex))) (defn- grep-in-zipfile [zip file-glob line-regex]