From ccdb853266ef399d373e0cbf274dc365e7fe1760 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 17 Aug 2023 02:48:15 +0300 Subject: [PATCH] add unnecessary backslashes --- files/helpers/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 3d22ee067d..32057be975 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -226,6 +226,6 @@ reason_regex_comment = re.compile('(/comment/[0-9]+)', flags=re.A) numbered_list_regex = re.compile('((\s|^)[0-9]+)\. ', flags=re.A) -image_link_regex = re.compile(f"https://(i\.)?{SITE}\/(chat_)?images\/[0-9]{{11,17}}r?\.webp", flags=re.A) +image_link_regex = re.compile(f"https:\/\/(i\.)?{SITE}\/(chat_)?images\/[0-9]{{11,17}}r?\.webp", flags=re.A) video_link_regex = re.compile(f"https://(videos\.)?{SITE}\/(videos\/)?[0-9a-zA-Z._-]{{4,66}}\.({video_regex_extensions})", flags=re.A)