Skip to content

Commit

Permalink
Ignore case to match pythonGH-42 and pythongh-42
Browse files Browse the repository at this point in the history
Fixes: python#333
  • Loading branch information
tiran committed Jul 9, 2022
1 parent e1e782b commit 63675f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/custom/pr_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def sendMessage(self, reports):
if not change_comments:
return

m = re.search(r"\((?:GH-|#)(\d+)\)", change_comments)
# GH-42, gh-42, or #42
m = re.search(r"\((?:GH-|#)(\d+)\)", change_comments, flags=re.IGNORECASE)

if m is None:
return
Expand Down

0 comments on commit 63675f5

Please sign in to comment.