mohammad hassan
commited on
fix bug regex
Browse files- pytube/parser.py +1 -1
pytube/parser.py
CHANGED
@@ -149,7 +149,7 @@ def throttling_array_split(js_array):
|
|
149 |
curr_substring = js_array[1:]
|
150 |
|
151 |
comma_regex = re.compile(r",")
|
152 |
-
func_regex = re.compile(r"function\([^)]
|
153 |
|
154 |
while len(curr_substring) > 0:
|
155 |
if curr_substring.startswith('function'):
|
|
|
149 |
curr_substring = js_array[1:]
|
150 |
|
151 |
comma_regex = re.compile(r",")
|
152 |
+
func_regex = re.compile(r"function\([^)]*\)")
|
153 |
|
154 |
while len(curr_substring) > 0:
|
155 |
if curr_substring.startswith('function'):
|