mohammad hassan commited on
Commit
bc891f4
·
unverified ·
1 Parent(s): f06e071

fix bug regex

Browse files
Files changed (1) hide show
  1. 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'):