Permalink
Browse files

Default war-exclusions to exclude hidden files

  • Loading branch information...
1 parent 7b83769 commit 61028fb98b9ea33824336e0ba2aa650a64b91df5 @weavejester committed May 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/leiningen/ring/war.clj
@@ -25,7 +25,7 @@
(or (re-find #"^\.?#" (.getName file))
(re-find #"~$" (.getName file))
(some #(re-find % war-path)
- (get-in project [:ring :war-exclusions]))))
+ (get-in project [:ring :war-exclusions] [#"(^|/)\."]))))
(defn- to-byte-stream [^String s]
(ByteArrayInputStream. (.getBytes s)))

0 comments on commit 61028fb

Please sign in to comment.