From 4084eb8305e69530efba29136a616fc43836b0ef Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 8 Jul 2024 18:55:45 +0200 Subject: [PATCH] Ruff fix --- socials_util/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socials_util/__init__.py b/socials_util/__init__.py index bcddf9f..3df567e 100644 --- a/socials_util/__init__.py +++ b/socials_util/__init__.py @@ -439,7 +439,7 @@ def determine_social_from_url_internally( # Regexes for social_site_url_regex, social_site_id in REGEXES: - if m := re.fullmatch(social_site_url_regex, url, re.I): + if m := re.fullmatch(social_site_url_regex, url, re.IGNORECASE): groups = m.groups() username_or_id = groups[0] if len(groups) > 0 else None if username_or_id in DISALLOWED_IDENTIFIERS: