Skip to content

Commit cad53c6

Browse files
raymcdermottswannodette
authored andcommitted
CLJS-2782: lein test fails if directory has hyphens
The hyphen fix is only needed for code cases. This further fix limits the code to cases where that predicate is true.
1 parent 6062744 commit cad53c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/clojure/cljs/module_processing_tests.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
(.getAbsolutePath $)
3737
(subs $ 0 (.lastIndexOf $ (str File/separator)))
3838
(string/replace $ "/" "$")
39-
(string/replace $ "-" "_")
39+
(cond-> $ code? (string/replace "-" "_"))
4040
;; Windows
4141
(string/replace $ "\\" "$")
4242
(if code?

0 commit comments

Comments
 (0)