Skip to content

Commit a7f75c3

Browse files
authored
Avoid indexing non-clj files. (#17)
1 parent 8d4bb9f commit a7f75c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/shadow/css/build.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@
412412
#?(:clj
413413
(do (defn clj-file? [filename]
414414
;; .clj .cljs .cljc .cljd
415-
(str/index-of filename ".clj"))
415+
(re-matches #".+\.clj[cs]?$" filename))
416416

417417
(defn index-file [build-state ^File file]
418418
(let [src (slurp file)]

0 commit comments

Comments
 (0)