add yanked v1.0.0, update parser to handle yanked versions

This commit is contained in:
Abigail 2019-12-16 00:15:37 -05:00
parent afa2054323
commit 7416596ac3
2 changed files with 7 additions and 4 deletions

View File

@ -31,5 +31,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Cleaned up code to comply with the PEP8 Standard - Cleaned up code to comply with the PEP8 Standard
- Issue in morse and unmorse commands where spaces were not interpreted correctly - Issue in morse and unmorse commands where spaces were not interpreted correctly
## v1.0.0 - 2019-07-31 [YANKED]
[Unreleased]: https://github.com/classabbyamp/discord-qrm2/compare/v2.0.0...HEAD [Unreleased]: https://github.com/classabbyamp/discord-qrm2/compare/v2.0.0...HEAD
[v2.0.0]: https://github.com/classabbyamp/discord-qrm2/releases/tag/v2.0.0 [v2.0.0]: https://github.com/classabbyamp/discord-qrm2/releases/tag/v2.0.0

View File

@ -175,6 +175,7 @@ def parse_changelog():
continue continue
if re.match(r'##[^#]', line): if re.match(r'##[^#]', line):
ver_match = re.match(r'\[(.+)\](?: - )?(\d{4}-\d{2}-\d{2})?', line.lstrip('#').strip()) ver_match = re.match(r'\[(.+)\](?: - )?(\d{4}-\d{2}-\d{2})?', line.lstrip('#').strip())
if ver_match is not None:
ver = ver_match.group(1) ver = ver_match.group(1)
changelog[ver] = dict() changelog[ver] = dict()
if ver_match.group(2): if ver_match.group(2):