From 74b60a1854b8724e740f3f957faebe6b0237d7eb Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 7 Sep 2023 21:32:43 +0300 Subject: [PATCH] improvement since ) is optional if its the last characters --- 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 1de87407ce..5bbf33e905 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -128,7 +128,7 @@ twitch_regex = re.compile('(https:\/\/)?(www\.)?twitch.tv\/(.*)', flags=re.I|re. link_fix_regex = re.compile("(\[.*?\]\()(?!http|\/)(.*?\))" + NOT_IN_CODE_OR_LINKS, flags=re.A) -css_url_regex = re.compile('url\(((.|\n)*?)\)', flags=re.I|re.A) +css_url_regex = re.compile('url\(((.|\n)*?)(\)|$)', flags=re.I|re.A) linefeeds_regex = re.compile("([^\n])\n([^\n])", flags=re.A)