diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-07-09 17:03:39 -0400 |
---|---|---|
committer | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-07-14 17:02:30 -0400 |
commit | e8e02f122089588d11d5f42663a3a0c6aab50f9b (patch) | |
tree | ea3576d43e1ed822a6dfeea50ef333329f8fe4cf /src/Text/Pandoc/Readers/Odt | |
parent | bbfcd50fb14fa0754e564c99eec01763ba701400 (diff) | |
download | pandoc-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/Readers/Odt')
0 files changed, 0 insertions, 0 deletions