mirror of https://github.com/miaowware/qrm2.git
add yanked v1.0.0, update parser to handle yanked versions
This commit is contained in:
parent
afa2054323
commit
7416596ac3
|
@ -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
|
||||
- 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
|
||||
[v2.0.0]: https://github.com/classabbyamp/discord-qrm2/releases/tag/v2.0.0
|
||||
|
|
|
@ -175,10 +175,11 @@ def parse_changelog():
|
|||
continue
|
||||
if re.match(r'##[^#]', line):
|
||||
ver_match = re.match(r'\[(.+)\](?: - )?(\d{4}-\d{2}-\d{2})?', line.lstrip('#').strip())
|
||||
ver = ver_match.group(1)
|
||||
changelog[ver] = dict()
|
||||
if ver_match.group(2):
|
||||
changelog[ver]['date'] = ver_match.group(2)
|
||||
if ver_match is not None:
|
||||
ver = ver_match.group(1)
|
||||
changelog[ver] = dict()
|
||||
if ver_match.group(2):
|
||||
changelog[ver]['date'] = ver_match.group(2)
|
||||
elif re.match(r'###[^#]', line):
|
||||
heading = line.lstrip('#').strip()
|
||||
changelog[ver][heading] = []
|
||||
|
|
Loading…
Reference in New Issue