From a74ccc8cb02220ca45a1d0222ba5ba986abae570 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Mon, 28 Mar 2022 12:42:46 +0200 Subject: [PATCH] gcc-changelog: Update revert_regex. contrib/ChangeLog: * gcc-changelog/git_commit.py: Match trailing dot literally. --- contrib/gcc-changelog/git_commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 7e29934b4ad5..a6b5ff04f221 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -165,7 +165,7 @@ star_prefix_regex = re.compile(r'\t\*(?P\ *)(?P.*)') end_of_location_regex = re.compile(r'[\[<(:]') item_empty_regex = re.compile(r'\t(\* \S+ )?\(\S+\):\s*$') item_parenthesis_regex = re.compile(r'\t(\*|\(\S+\):)') -revert_regex = re.compile(r'This reverts commit (?P[0-9a-f]+).$') +revert_regex = re.compile(r'This reverts commit (?P[0-9a-f]+)\.$') cherry_pick_regex = re.compile(r'cherry picked from commit (?P\w+)') LINE_LIMIT = 100 -- 2.47.2