mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
Tests: Import URLs surrounded by single quotes
This updates the regex for CSS URLs in the WPT import script to correctly match URLs surrounded by single quotes.
This commit is contained in:
parent
09b8f73e11
commit
3e56e9e65d
Notes:
github-actions[bot]
2025-03-28 09:42:21 +00:00
Author: https://github.com/skyz1
Commit: 3e56e9e65d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3940
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class LinkedResourceFinder(HTMLParser):
|
|||
def __init__(self):
|
||||
super().__init__()
|
||||
self._tag_stack_ = []
|
||||
self._match_css_url_ = re.compile(r"url\(\"?(?P<url>[^\")]+)\"?\)")
|
||||
self._match_css_url_ = re.compile(r"url\(['\"]?(?P<url>[^'\")]+)['\"]?\)")
|
||||
self._match_css_import_string_ = re.compile(r"@import\s+\"(?P<url>[^\")]+)\"")
|
||||
self._resources = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue