on master help sign in
Merge pull request #82 from mekeor/master

ignore files beginning with a hash

commit1a5f7a135d1de67d1db22a49af364455b047f5c0 authorJasper Van der Jeugt <jaspervdj@gmail.com> dateSun 12 Aug 2012, 17:22 (14 years ago) parenteb3dd6c0a8df1d
1 file changed+5−2
src/Hakyll/Core/Configuration.hs+5−2
src/Hakyll/Core/Configuration.hs+5−2
@@ -20,6 +20,8 @@ data HakyllConfiguration = HakyllConfiguration
2020 --
2121 -- * files starting with a @.@
2222 --
23+ -- * files starting with a @#@
24+ --
2325 -- * files ending with a @~@
2426 --
2527 -- * files ending with @.swp@
@@ -57,8 +59,9 @@ defaultHakyllConfiguration = HakyllConfiguration
5759 }
5860 where
5961 ignoreFile' path
60− | "." `isPrefixOf` fileName = True
61− | "~" `isSuffixOf` fileName = True
62+ | "." `isPrefixOf` fileName = True
63+ | "#" `isPrefixOf` fileName = True
64+ | "~" `isSuffixOf` fileName = True
6265 | ".swp" `isSuffixOf` fileName = True
6366 | otherwise = False
6467 where