diff options
author | Bradley Smith <smithbradley@google.com> | 2023-05-30 08:17:29 -0700 |
---|---|---|
committer | Bradley Smith <smithbradley@google.com> | 2023-05-30 08:17:29 -0700 |
commit | f37726d2268fe61ef1697ecb32963657a45b3964 (patch) | |
tree | 02b82a88487b82096fac8ebaee6a2dfc920a60aa | |
parent | d427ec7d2b27b3458dbacbf1514301a93263e55c (diff) | |
download | repohooks-f37726d2268fe61ef1697ecb32963657a45b3964.tar.gz |
In Python3.11 flags must be included at the start of a regexstudio-2024.1.2-canary1studio-2024.1.1-canary8studio-2024.1.1-canary6studio-2024.1.1-beta2studio-2024.1.1studio-2023.3.1-rc2studio-2023.3.1-patch2studio-2023.3.1-canary8studio-2023.3.1-canary03studio-2023.3.1studio-2023.2.1-rc1studio-2023.2.1-canary05studio-2023.2.1-beta02studio-2023.2.1
Change-Id: I899e6e468f0ce8e15e74ff97adbe8006247d3b83
-rw-r--r-- | rh/hooks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rh/hooks.py b/rh/hooks.py index 4932c2f..23cd641 100644 --- a/rh/hooks.py +++ b/rh/hooks.py @@ -457,7 +457,7 @@ def check_google_java_format(project, commit, _desc, _diff, options=None): def check_commit_msg_buganizer_field(project, commit, desc, _diff, options=None): """Check the commit message for a 'Bug:' or 'Fixes:' line.""" - regex = r'^(?i)(bug|fixes):' + regex = r'(?i)^(bug|fixes):' check_re = re.compile(regex) if options.args(): |