1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 08:35:32 +00:00

[utils] Allow dot in strip_jsonp

This commit is contained in:
Sergey M․
2016-02-07 19:47:09 +06:00
parent 72b9ebc65d
commit 8411229bd5
2 changed files with 5 additions and 1 deletions

View File

@ -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):