diff --git a/test/test_parsing.py b/test/test_parsing.py index a7e7ec7d46..0e006298f7 100644 --- a/test/test_parsing.py +++ b/test/test_parsing.py @@ -345,7 +345,7 @@ def mark_comments(_string, char='^', nochar='-'): ^^^^^^^^^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ here is and end ----------------^^^^^^^^^^^----------------^^^^^^^^^^^^^^^^^--------- - + --------^^^^^^^^^^^^^-----------------------------^^^^^^^^^^--------- ''' diff --git a/yt_dlp/parsing.py b/yt_dlp/parsing.py index 256ba8e6c7..f4aaf1ac4f 100644 --- a/yt_dlp/parsing.py +++ b/yt_dlp/parsing.py @@ -20,7 +20,7 @@ class HTMLIgnoreRanges: if offset in ranges: ... """ - REGEX = re.compile(r'|]*>') + REGEX = re.compile(r'|]*>', flags=re.IGNORECASE) def __init__(self, html): self.html = html