diff options
author | Mike Fährmann <mike_faehrmann@web.de> | 2018-01-20 16:54:21 +0100 |
---|---|---|
committer | Sergey M <dstftw@gmail.com> | 2018-01-20 22:54:21 +0700 |
commit | c384d537f882efab10a78a56ce6dcb0a30f54b47 (patch) | |
tree | 9e08a36b8eb3352c748c8911971a13aff24d26ef /youtube_dl/utils.py | |
parent | e7f3529f68ee7c8ca78366d37f851cb31fa00f31 (diff) |
[util] Improve scientific notation handling in js_to_json (closes #14789)
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 386897a85..2fe9cf585 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -2267,7 +2267,7 @@ def js_to_json(code): "(?:[^"\\]*(?:\\\\|\\['"nurtbfx/\n]))*[^"\\]*"| '(?:[^'\\]*(?:\\\\|\\['"nurtbfx/\n]))*[^'\\]*'| {comment}|,(?={skip}[\]}}])| - [a-zA-Z_][.a-zA-Z_0-9]*| + (?:(?<![0-9])[eE]|[a-df-zA-DF-Z_])[.a-zA-Z_0-9]*| \b(?:0[xX][0-9a-fA-F]+|0+[0-7]+)(?:{skip}:)?| [0-9]+(?={skip}:) '''.format(comment=COMMENT_RE, skip=SKIP_RE), fix_kv, code) |