aboutsummaryrefslogtreecommitdiff
path: root/Backend/Hash.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Backend/Hash.hs')
-rw-r--r--Backend/Hash.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Backend/Hash.hs b/Backend/Hash.hs
index da0f7df9b..1d5436823 100644
--- a/Backend/Hash.hs
+++ b/Backend/Hash.hs
@@ -94,7 +94,7 @@ selectExtension f
| otherwise = intercalate "." ("":es)
where
es = filter (not . null) $ reverse $
- take 2 $ map (filter validInExtension) $
+ take 2 $ filter (all validInExtension) $
takeWhile shortenough $
reverse $ splitc '.' $ takeExtensions f
shortenough e = length e <= 4 -- long enough for "jpeg"