aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-06-23 09:41:34 +0700
committerSergey M․ <dstftw@gmail.com>2016-06-23 09:41:34 +0700
commitb46eabecd3d6e8ea6dd3dc5a948ecbb65d818205 (patch)
tree46d6cf032e4b2206ea0a781778a7a19f16a73fc7 /youtube_dl
parent0437307a41dc97becc807abc9a86070ac9c847d8 (diff)
[jsinterp] Relax JS function regex (Closes #9863)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/jsinterp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/jsinterp.py b/youtube_dl/jsinterp.py
index a7440c582..9737f7002 100644
--- a/youtube_dl/jsinterp.py
+++ b/youtube_dl/jsinterp.py
@@ -232,7 +232,7 @@ class JSInterpreter(object):
def extract_function(self, funcname):
func_m = re.search(
r'''(?x)
- (?:function\s+%s|[{;,]%s\s*=\s*function|var\s+%s\s*=\s*function)\s*
+ (?:function\s+%s|[{;,]\s*%s\s*=\s*function|var\s+%s\s*=\s*function)\s*
\((?P<args>[^)]*)\)\s*
\{(?P<code>[^}]+)\}''' % (
re.escape(funcname), re.escape(funcname), re.escape(funcname)),