diff options
author | Salim B <salim@posteo.de> | 2021-02-27 01:56:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-26 17:56:04 -0800 |
commit | fae6a204f1a072d5efe4dff35fd08fbad2071198 (patch) | |
tree | c182a50b77fe2ae0eccec9082838383638cda919 /src/Text/Pandoc/Citeproc | |
parent | 8123571e8efa4fc02004e9c3812b5177f9d0c8c4 (diff) | |
download | pandoc-fae6a204f1a072d5efe4dff35fd08fbad2071198.tar.gz |
Fix/update URLs and use HTTP**S** where possible (#7122)
Diffstat (limited to 'src/Text/Pandoc/Citeproc')
-rw-r--r-- | src/Text/Pandoc/Citeproc/BibTeX.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Citeproc/BibTeX.hs b/src/Text/Pandoc/Citeproc/BibTeX.hs index 416fe439e..c0752dadc 100644 --- a/src/Text/Pandoc/Citeproc/BibTeX.hs +++ b/src/Text/Pandoc/Citeproc/BibTeX.hs @@ -577,10 +577,10 @@ itemToReference locale variant item = do eprint <- getRawField "eprint" let baseUrl = case T.toLower etype of - "arxiv" -> "http://arxiv.org/abs/" - "jstor" -> "http://www.jstor.org/stable/" - "pubmed" -> "http://www.ncbi.nlm.nih.gov/pubmed/" - "googlebooks" -> "http://books.google.com?id=" + "arxiv" -> "https://arxiv.org/abs/" + "jstor" -> "https://www.jstor.org/stable/" + "pubmed" -> "https://www.ncbi.nlm.nih.gov/pubmed/" + "googlebooks" -> "https://books.google.com?id=" _ -> "" if T.null baseUrl then mzero |