diff options
author | Sergey M․ <[email protected]> | 2016-06-23 09:41:34 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2016-06-23 09:41:34 +0700 |
commit | b46eabecd3d6e8ea6dd3dc5a948ecbb65d818205 (patch) | |
tree | 46d6cf032e4b2206ea0a781778a7a19f16a73fc7 | |
parent | 0437307a41dc97becc807abc9a86070ac9c847d8 (diff) | |
download | youtube-dl-b46eabecd3d6e8ea6dd3dc5a948ecbb65d818205.tar.gz youtube-dl-b46eabecd3d6e8ea6dd3dc5a948ecbb65d818205.zip |
[jsinterp] Relax JS function regex (Closes #9863)
-rw-r--r-- | youtube_dl/jsinterp.py | 2 |
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)), |