[release-monitoring] Fix default regex

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ý <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2023-05-15 15:56:55 +02:00
parent 5222f6ef87
commit a6c97669e6

View file

@ -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)\
"""