diff --git a/tools/changelog/check_changelog.py b/tools/changelog/check_changelog.py index 4b72cd0bc0b1..59da1270db1e 100644 --- a/tools/changelog/check_changelog.py +++ b/tools/changelog/check_changelog.py @@ -19,7 +19,7 @@ DISCORD_EMBED_DESCRIPTION_LIMIT = 4096 CL_BODY = re.compile(r"(:cl:|🆑)[ \t]*(?P.+?)?\s*\n(?P(.|\n)*?)\n/(:cl:|🆑)", re.MULTILINE) -CL_SPLIT = re.compile(r"\s*((?P\w+)\s*:)?\s*(?P.*)") +CL_SPLIT = re.compile(r"\s*(?:)?((?P\w+)\s*:)?\s*(?P.*)") DISCORD_TAG_EMOJI = { "soundadd": ":notes:", @@ -95,7 +95,7 @@ def parse_changelog(message: str) -> dict: else: if len(cl_changes): prev_change = cl_changes[-1] - prev_change["message"] += f" {change_parse_result['message']}" + prev_change["message"] += f" {message}" else: raise Exception(f"Change with no tag: {cl_line}")