aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/UUID.hs
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-07-09 17:03:39 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2016-07-14 17:02:30 -0400
commite8e02f122089588d11d5f42663a3a0c6aab50f9b (patch)
treeea3576d43e1ed822a6dfeea50ef333329f8fe4cf /src/Text/Pandoc/UUID.hs
parentbbfcd50fb14fa0754e564c99eec01763ba701400 (diff)
downloadpandoc-e8e02f122089588d11d5f42663a3a0c6aab50f9b.tar.gz
Shared: improve year sanity check in normalizeDate
Previously we parsed a list of dates, took the first one, and then tested its year range. That meant that if the first one failed, we returned nothing, regardless of what the others did. Now we test for sanity before running `msum` over the list of Maybe values. Anything failing the test will be Nothing, so will not be a candidate.
Diffstat (limited to 'src/Text/Pandoc/UUID.hs')
0 files changed, 0 insertions, 0 deletions