diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Hakyll/Util.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Hakyll/Util.hs b/src/Text/Hakyll/Util.hs index 6076dc4..7dc0ce3 100644 --- a/src/Text/Hakyll/Util.hs +++ b/src/Text/Hakyll/Util.hs @@ -25,4 +25,5 @@ stripHTML str = let (beforeTag, rest) = break (== '<') str -- | Split a list at a certain element. split :: String -> String -> [String] -split pattern = splitRegex (mkRegex pattern) +split pattern = filter (not . null) + . splitRegex (mkRegex pattern) |