aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-12-19 14:55:39 +0100
committerMartin Liska <mliska@suse.cz>2022-12-19 14:55:39 +0100
commita9f6a2b7f579b684037eaddab97db35096c10c3b (patch)
treeae8068b3a82fb3f281bd0036ce995491e8b91812 /contrib/gcc-changelog
parent7e9ec734f9f942b8068df476f8365440fa9fd410 (diff)
downloadgcc-a9f6a2b7f579b684037eaddab97db35096c10c3b.zip
gcc-a9f6a2b7f579b684037eaddab97db35096c10c3b.tar.gz
gcc-a9f6a2b7f579b684037eaddab97db35096c10c3b.tar.bz2
gcc-changelog: support digits in PR's component in subject
contrib/ChangeLog: * gcc-changelog/git_commit.py: Support digits in PR's component in subject.
Diffstat (limited to 'contrib/gcc-changelog')
-rwxr-xr-xcontrib/gcc-changelog/git_commit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index 7fde02c..b73e587 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -163,7 +163,7 @@ author_line_regex = \
re.compile(r'^(?P<datetime>\d{4}-\d{2}-\d{2})\ {2}(?P<name>.* <.*>)')
additional_author_regex = re.compile(r'^\t(?P<spaces>\ *)?(?P<name>.* <.*>)')
changelog_regex = re.compile(r'^(?:[fF]or +)?([a-z0-9+-/]*)ChangeLog:?')
-subject_pr_regex = re.compile(r'(^|\W)PR\s+(?P<component>[a-zA-Z+-]+)/(?P<pr>\d{4,7})')
+subject_pr_regex = re.compile(r'(^|\W)PR\s+(?P<component>[a-zA-Z0-9+-]+)/(?P<pr>\d{4,7})')
subject_pr2_regex = re.compile(r'[(\[]PR\s*(?P<pr>\d{4,7})[)\]]')
pr_regex = re.compile(r'\tPR (?P<component>[a-z0-9+-]+\/)?(?P<pr>[0-9]+)$')
dr_regex = re.compile(r'\tDR ([0-9]+)$')