Skip to content

Commit

Permalink
fixed :grep module to work on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
juerg committed Jan 14, 2024
1 parent 6cb179e commit b1b54a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/com/github/jlangch/venice/grep.venice
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b1b54a4

Please sign in to comment.