From c34166d7c8d64f065eb05a6447e268a7b7dc3e6e Mon Sep 17 00:00:00 2001 From: flashdagger Date: Mon, 13 Nov 2023 06:54:28 +0100 Subject: [PATCH] [parsing] support uppercase SCRIPT tags as suggested by github-advanced-security bot --- test/test_parsing.py | 2 +- yt_dlp/parsing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_parsing.py b/test/test_parsing.py index a7e7ec7d4..0e006298f 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 256ba8e6c..f4aaf1ac4 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