From a6c97669e67ddbf053cce80291cd6ab91c0cb5c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Mon, 15 May 2023 15:56:55 +0200 Subject: [PATCH] [release-monitoring] Fix default regex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `i` flag is only allowed on start of the regex in python 3.11+. Let's adjust the regex to reflect that. For more info see: https://docs.python.org/3/library/re.html#regular-expression-syntax Signed-off-by: Michal Konečný --- roles/openshift-apps/release-monitoring/templates/anitya.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/openshift-apps/release-monitoring/templates/anitya.toml b/roles/openshift-apps/release-monitoring/templates/anitya.toml index 032c08172b..803005ba05 100644 --- a/roles/openshift-apps/release-monitoring/templates/anitya.toml +++ b/roles/openshift-apps/release-monitoring/templates/anitya.toml @@ -52,7 +52,7 @@ social_auth_authentication_backends = [ # Default regular expression used for backend default_regex = """\ - %(name)s(?:[-_]?(?:minsrc|src|source))?[-_]([^-/_\\s]+?)(?i)(?:[-_]\ + (?i)%(name)s(?:[-_]?(?:minsrc|src|source))?[-_]([^-/_\\s]+?)(?:[-_]\ (?:minsrc|src|source|asc|release))?\\.(?:tar|t[bglx]z|tbz2|zip)\ """