aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2014-04-05 15:50:46 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2014-04-05 15:50:46 -0700
commitf2deb9d86d864c79c5ca18205b4ca565b7199413 (patch)
tree1f42253964e7f5a9c7e47f74524f49f0bc60f58a
parente35ebd3239ba026871222ba7d5687f994e5212d6 (diff)
downloadpandoc-f2deb9d86d864c79c5ca18205b4ca565b7199413.tar.gz
Org reader: Added type signature.
-rw-r--r--src/Text/Pandoc/Readers/Org.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Org.hs b/src/Text/Pandoc/Readers/Org.hs
index 8b1b4fa23..5ad2531ac 100644
--- a/src/Text/Pandoc/Readers/Org.hs
+++ b/src/Text/Pandoc/Readers/Org.hs
@@ -613,6 +613,7 @@ endsOnThisLine input c doOnOtherLines = do
else endsOnThisLine rest c doOnOtherLines
_ -> mzero
+isImage :: String -> Bool
isImage filename =
any (\x -> ('.':x) `isSuffixOf` filename) imageExtensions &&
any (\x -> (x++":") `isPrefixOf` filename) protocols ||