aboutsummaryrefslogtreecommitdiff
path: root/html-test
diff options
context:
space:
mode:
Diffstat (limited to 'html-test')
-rwxr-xr-xhtml-test/Main.hs11
1 files changed, 10 insertions, 1 deletions
diff --git a/html-test/Main.hs b/html-test/Main.hs
index 8d1b40a8..49e769f5 100755
--- a/html-test/Main.hs
+++ b/html-test/Main.hs
@@ -1,6 +1,8 @@
{-# LANGUAGE CPP #-}
+import Data.Char
+
import System.Environment
import System.FilePath
@@ -17,7 +19,9 @@ checkConfig = CheckConfig
dirConfig :: DirConfig
-dirConfig = defaultDirConfig $ takeDirectory __FILE__
+dirConfig = (defaultDirConfig $ takeDirectory __FILE__)
+ { dcfgCheckIgnore = checkIgnore
+ }
main :: IO ()
@@ -36,3 +40,8 @@ stripIfRequired mdl =
-- | List of modules in which we don't 'stripLinks'
preserveLinksModules :: [String]
preserveLinksModules = ["Bug253"]
+
+
+checkIgnore :: FilePath -> Bool
+checkIgnore file@(c:_) | takeExtension file == ".html" && isUpper c = False
+checkIgnore _ = True