From 4a0e216c2827c24f34de3e4a0fed138babc84537 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 6 Sep 2023 15:54:49 +0300 Subject: [PATCH] improve css_url_regex --- 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 75b367fb9..d302cb9a9 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\(\s*[\'"]?(.*)[\'"]?', flags=re.I|re.A) +css_url_regex = re.compile('url\(\s*[\'"]?([^\'"]*)', flags=re.I|re.A) linefeeds_regex = re.compile("([^\n])\n([^\n])", flags=re.A)