aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-05-23 09:49:56 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-05-23 09:49:56 +0200
commit66fa38ed1c27935fc57677d9c63ac9263958e3fd (patch)
treeacba5c3c913ee85170a3f6653852cd9cd76051ab
parent5debb0da0f94d1454d51cacede7c4844f01cc2f5 (diff)
downloadpandoc-66fa38ed1c27935fc57677d9c63ac9263958e3fd.tar.gz
Shared.isURI: allow uppercase versions of known schemes.
-rw-r--r--src/Text/Pandoc/Shared.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index 7a1e6f3e3..a6c6fb95f 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -839,7 +839,8 @@ schemes = Set.fromList
isURI :: String -> Bool
isURI = maybe False hasKnownScheme . parseURI
where
- hasKnownScheme = (`Set.member` schemes) . filter (/= ':') . uriScheme
+ hasKnownScheme = (`Set.member` schemes) . map toLower .
+ filter (/= ':') . uriScheme
---
--- Squash blocks into inlines