aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/utils.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-02-07 19:47:09 +0600
committerSergey M․ <dstftw@gmail.com>2016-02-07 19:47:09 +0600
commit8411229bd5e147ef1ac3420000c7c28ba660df2d (patch)
treee0401068ff23d53326a18dab586b5a1fea157164 /youtube_dl/utils.py
parent72b9ebc65da3f1cb2f85d85b002674c8e5ae36ce (diff)
[utils] Allow dot in strip_jsonp
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index f3b0180ab..dce67de8a 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1749,7 +1749,7 @@ def parse_age_limit(s):
def strip_jsonp(code):
return re.sub(
- r'(?s)^[a-zA-Z0-9_]+\s*\(\s*(.*)\);?\s*?(?://[^\n]*)*$', r'\1', code)
+ r'(?s)^[a-zA-Z0-9_.]+\s*\(\s*(.*)\);?\s*?(?://[^\n]*)*$', r'\1', code)
def js_to_json(code):