Skip to content

Commit 9c742cc

Browse files
committed
An unnecessary regular expression
1 parent 8ba51cb commit 9c742cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clj/native_image.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
(:import (java.io File)))
66

77
(defn classpath
8-
"Returns the classpath string minus *this* project's path and plus *compile-path*."
8+
"Returns the classpath string minus clj.native-image path and plus *compile-path*."
99
[]
1010
(as-> (System/getProperty "java.class.path") $
1111
(cs/split $ (re-pattern (str File/pathSeparatorChar)))
12-
(remove #(re-find #"clj\.native\-image" %) $) ;; exclude ourselves
12+
(remove #(cs/includes? "clj.native-image" %) $) ;; exclude ourselves
1313
(cons *compile-path* $) ;; prepend compile path for classes
1414
(cs/join File/pathSeparatorChar $)))
1515

0 commit comments

Comments
 (0)